Skip to content

Commit

Permalink
include/assert: drop some dead code
Browse files Browse the repository at this point in the history
Signed-off-by: Sage Weil <sage@redhat.com>
  • Loading branch information
liewegas committed Jun 28, 2016
1 parent 23d6438 commit bc1ca22
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions src/include/assert.h
Original file line number Diff line number Diff line change
Expand Up @@ -86,26 +86,6 @@ extern void __ceph_assert_warn(const char *assertion, const char *file, int line
? __CEPH_ASSERT_VOID_CAST (0) \
: __ceph_assert_warn (__STRING(expr), __FILE__, __LINE__, __CEPH_ASSERT_FUNCTION))

/*
#define assert(expr) \
do { \
static int __assert_flag = 0; \
struct TlsData *tls = tls_get_val(); \
if (!__assert_flag && tls && tls->disable_assert) { \
__assert_flag = 1; \
__ceph_assert_warn(__STRING(expr), __FILE__, __LINE__, __ASSERT_FUNCTION); \
} \
((expr) \
? __CEPH_ASSERT_VOID_CAST (0) \
: __ceph_assert_fail (__STRING(expr), __FILE__, __LINE__, __ASSERT_FUNCTION)); \
} while (0)
#endif
*/
/*
#define assert_protocol(expr) assert(expr)
#define assert_disk(expr) assert(expr)
*/

#ifdef __cplusplus
}

Expand Down

0 comments on commit bc1ca22

Please sign in to comment.