diff options
| author | Kirill A. Shutemov <kirill@shutemov.name> | 2011-08-25 14:22:57 +0300 |
|---|---|---|
| committer | Kirill A. Shutemov <kirill@shutemov.name> | 2011-08-25 16:41:15 +0300 |
| commit | 932669b8655851cc18ca109e78dfe8d71c0b31c0 (patch) | |
| tree | 2a0cdabf777d541ffcaee30d57d2071dff406a1d /src/util.h | |
| parent | a7e34e3c854aaed77ede8558ff253716bc4c80a2 (diff) | |
| download | libgit2-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.h | 2 |
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); /* |
