diff options
author | Khaled Hosny <khaled@aliftype.com> | 2023-02-04 10:59:41 +0200 |
---|---|---|
committer | Khaled Hosny <khaled@aliftype.com> | 2023-02-04 10:59:41 +0200 |
commit | 7980301fe472586bd9d9dd66daaf101f207f7619 (patch) | |
tree | ebe4e8f1ba09e692369994a930b6a87ab19466b3 /test | |
parent | c1564baf61b8294757a200a39c9de6e029a80edd (diff) | |
download | cairo-7980301fe472586bd9d9dd66daaf101f207f7619.tar.gz |
Remove dead code
This is no-op as the functions always return TRUE and the code is never
executed.
Diffstat (limited to 'test')
-rw-r--r-- | test/cairo-test-runner.c | 63 |
1 files changed, 0 insertions, 63 deletions
diff --git a/test/cairo-test-runner.c b/test/cairo-test-runner.c index cfaea2360..72aa1ff9b 100644 --- a/test/cairo-test-runner.c +++ b/test/cairo-test-runner.c @@ -726,45 +726,6 @@ _has_required_cairo_version (const char *str) CAIRO_VERSION_ENCODE (major, minor, micro)); } -static cairo_bool_t -_has_required_ghostscript_version (const char *str) -{ -#if ! CAIRO_CAN_TEST_PS_SURFACE - (void)str; - return TRUE; -#endif - - str += 2; /* advance over "gs" */ - - return TRUE; -} - -static cairo_bool_t -_has_required_poppler_version (const char *str) -{ -#if ! CAIRO_CAN_TEST_PDF_SURFACE - (void)str; - return TRUE; -#endif - - str += 7; /* advance over "poppler" */ - - return TRUE; -} - -static cairo_bool_t -_has_required_rsvg_version (const char *str) -{ -#if ! CAIRO_CAN_TEST_SVG_SURFACE - (void)str; - return TRUE; -#endif - - str += 4; /* advance over "rsvg" */ - - return TRUE; -} - #define TEST_SIMILAR 0x1 #define TEST_OFFSET 0x2 #define TEST_SCALE 0x4 @@ -908,30 +869,6 @@ main (int argc, char **argv) else goto TEST_SKIPPED; } - - str = strstr (requirements, "gs"); - if (str != NULL && ! _has_required_ghostscript_version (str)) { - if (runner.list_only) - goto TEST_NEXT; - else - goto TEST_SKIPPED; - } - - str = strstr (requirements, "poppler"); - if (str != NULL && ! _has_required_poppler_version (str)) { - if (runner.list_only) - goto TEST_NEXT; - else - goto TEST_SKIPPED; - } - - str = strstr (requirements, "rsvg"); - if (str != NULL && ! _has_required_rsvg_version (str)) { - if (runner.list_only) - goto TEST_NEXT; - else - goto TEST_SKIPPED; - } } if (runner.list_only) { |