]> git.ozlabs.org Git - ccan/blobdiff - ccan/ntdb/test/failtest_helper.c
ntdb: fix up tests.
[ccan] / ccan / ntdb / test / failtest_helper.c
index 45b24512e9936ae8b01ba8b45e7947764cc94886..ab7e61b0d7ff9b32419479e8671a83bea4a07785 100644 (file)
@@ -5,15 +5,6 @@
 
 bool failtest_suppress = false;
 
-/* FIXME: From ccan/str */
-static inline bool strends(const char *str, const char *postfix)
-{
-       if (strlen(str) < strlen(postfix))
-               return false;
-
-       return !strcmp(str + strlen(str) - strlen(postfix), postfix);
-}
-
 bool failmatch(const struct failtest_call *call,
               const char *file, int line, enum failtest_call_type type)
 {