s3:smbprofile: remove unused {START,END}_PROFILE_STAMP()
authorStefan Metzmacher <metze@samba.org>
Mon, 17 Nov 2014 19:05:09 +0000 (20:05 +0100)
committerJeremy Allison <jra@samba.org>
Wed, 19 Nov 2014 19:51:37 +0000 (20:51 +0100)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/include/smbprofile.h

index bafd693b34cca383e484a6327e7bebb250b9ea6f..67ffa77dfd4841f1e331a7c5e5e8769e4332f752 100644 (file)
@@ -482,12 +482,6 @@ static inline uint64_t profile_timestamp(void)
 #define DO_PROFILE_INC(x) \
        _SMBPROFILE_COUNT_INCREMENT(x##_stats, profile_p, 1); \
 
-#define START_PROFILE_STAMP(x, _stamp) do { \
-       struct smbprofile_stats_basic_async __profasync_##x = {}; \
-       _SMBPROFILE_BASIC_ASYNC_START(x##_stats, profile_p, __profasync_##x); \
-       _stamp = __profasync_##x.start; \
-} while(0)
-
 #define START_PROFILE(x) \
        struct smbprofile_stats_basic_async __profasync_##x = {}; \
        _SMBPROFILE_BASIC_ASYNC_START(x##_stats, profile_p, __profasync_##x);
@@ -496,17 +490,6 @@ static inline uint64_t profile_timestamp(void)
        struct smbprofile_stats_bytes_async __profasync_##x = {}; \
        _SMBPROFILE_BYTES_ASYNC_START(x##_stats, profile_p, __profasync_##x, n);
 
-#define END_PROFILE_STAMP(x, _stamp) do { \
-       struct smbprofile_stats_basic_async __profasync_##x = {}; \
-       if (do_profile_flag && do_profile_times) { \
-               __profasync_##x = (struct smbprofile_stats_basic_async) { \
-                       .start = (_stamp), \
-                       .stats = &(profile_p->x##_stats), \
-               }; \
-       } \
-       SMBPROFILE_BASIC_ASYNC_END(__profasync_##x); \
-} while(0)
-
 #define END_PROFILE(x) \
        SMBPROFILE_BASIC_ASYNC_END(__profasync_##x)
 
@@ -538,10 +521,8 @@ static inline uint64_t profile_timestamp(void)
 #define SMBPROFILE_IOBYTES_ASYNC_END(_async, _outbytes)
 
 #define DO_PROFILE_INC(x)
-#define START_PROFILE_STAMP(x, _stamp)
 #define START_PROFILE(x)
 #define START_PROFILE_BYTES(x,n)
-#define END_PROFILE_STAMP(x, _stamp)
 #define END_PROFILE(x)
 #define END_PROFILE_BYTES(x)