Skip to content

Commit 688bf4c

Browse files
committed
Remove macro magic
1 parent 950a7f7 commit 688bf4c

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

src/trace.h

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -47,15 +47,6 @@ GIT_INLINE(void) git_trace__write_fmt(
4747
}
4848

4949
#define git_trace_level() (git_trace__data.level)
50-
/* Varadic macros are a C99 feature */
51-
#if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
52-
#define git_trace(l, ...) { \
53-
if (git_trace__data.level >= l && \
54-
git_trace__data.callback != NULL) { \
55-
git_trace__write_fmt(l, __VA_ARGS__); \
56-
} \
57-
}
58-
#else
5950
GIT_INLINE(void) git_trace(git_trace_level_t level, const char *fmt, ...)
6051
{
6152
if (git_trace__data.level >= level &&
@@ -67,7 +58,6 @@ GIT_INLINE(void) git_trace(git_trace_level_t level, const char *fmt, ...)
6758
va_end(ap);
6859
}
6960
}
70-
#endif
7161
#else
7262

7363
GIT_INLINE(void) git_trace__null(

0 commit comments

Comments
 (0)