core: remove line_set_offset()
authorBartosz Golaszewski <bartekgola@gmail.com>
Wed, 18 Oct 2017 14:20:46 +0000 (16:20 +0200)
committerBartosz Golaszewski <bartekgola@gmail.com>
Wed, 18 Oct 2017 14:20:46 +0000 (16:20 +0200)
This function is not used and should have been static anyway.

Signed-off-by: Bartosz Golaszewski <bartekgola@gmail.com>
src/lib/core.c

index 439faae0fb708ed4b06f9983392c84e6dbb0a404..bb9382de2cbc6f16c7d81517fe248429e33c4aeb 100644 (file)
@@ -260,11 +260,6 @@ static void line_set_state(struct gpiod_line *line, int state)
        line->state = state;
 }
 
-void line_set_offset(struct gpiod_line *line, unsigned int offset)
-{
-       line->info.line_offset = offset;
-}
-
 struct gpiod_chip * gpiod_line_get_chip(struct gpiod_line *line)
 {
        return line->chip;