From: Bartosz Golaszewski Date: Mon, 22 Jan 2018 09:23:55 +0000 (+0100) Subject: tests: kill test_free_str() X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=2ab19bd70697982f5915f4fcbaf78b0911380bac;p=qemu-gpiodev%2Flibgpiod.git tests: kill test_free_str() This function is no longer used - all strings are created using test_build_str(). Signed-off-by: Bartosz Golaszewski --- diff --git a/tests/gpiod-test.c b/tests/gpiod-test.c index 9e1b129..fcb5cd4 100644 --- a/tests/gpiod-test.c +++ b/tests/gpiod-test.c @@ -1033,12 +1033,6 @@ void test_line_close_chip(struct gpiod_line **line) gpiod_line_close_chip(*line); } -void test_free_str(char **str) -{ - if (*str) - free(*str); -} - void test_free_chip_iter(struct gpiod_chip_iter **iter) { if (*iter) diff --git a/tests/gpiod-test.h b/tests/gpiod-test.h index 3ff4259..b8f13c1 100644 --- a/tests/gpiod-test.h +++ b/tests/gpiod-test.h @@ -128,7 +128,6 @@ void test_tool_stdin_write(const char *fmt, ...) TEST_PRINTF(1, 2); */ void test_close_chip(struct gpiod_chip **chip); void test_line_close_chip(struct gpiod_line **line); -void test_free_str(char **str); void test_free_chip_iter(struct gpiod_chip_iter **iter); void test_free_chip_iter_noclose(struct gpiod_chip_iter **iter); void test_free_line_iter(struct gpiod_line_iter **iter);