summaryrefslogtreecommitdiff
path: root/src/util.h
diff options
context:
space:
mode:
authorKirill A. Shutemov <kirill@shutemov.name>2011-08-25 14:22:57 +0300
committerKirill A. Shutemov <kirill@shutemov.name>2011-08-25 16:41:15 +0300
commit932669b8655851cc18ca109e78dfe8d71c0b31c0 (patch)
tree2a0cdabf777d541ffcaee30d57d2071dff406a1d /src/util.h
parenta7e34e3c854aaed77ede8558ff253716bc4c80a2 (diff)
downloadlibgit2-932669b8655851cc18ca109e78dfe8d71c0b31c0.tar.gz
Drop STRLEN() macros
There is no need in STRLEN macros. Compilers can do this trivial optimization on its own. Signed-off-by: Kirill A. Shutemov <kirill@shutemov.name>
Diffstat (limited to 'src/util.h')
-rw-r--r--src/util.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/util.h b/src/util.h
index 4a3342017..78f9f8276 100644
--- a/src/util.h
+++ b/src/util.h
@@ -93,8 +93,6 @@ extern char *git__strtok(char **end, const char *sep);
extern void git__strntolower(char *str, int len);
extern void git__strtolower(char *str);
-#define STRLEN(str) (sizeof(str) - 1)
-
extern int git__fnmatch(const char *pattern, const char *name, int flags);
/*