Skip to content

Commit

Permalink
DAOS-623 build: Remove some dead code
Browse files Browse the repository at this point in the history
Required-githooks: true

Signed-off-by: Jeff Olivier <[email protected]>
  • Loading branch information
jolivier23 committed Dec 12, 2024
1 parent 30065cb commit cb138d6
Showing 1 changed file with 0 additions and 25 deletions.
25 changes: 0 additions & 25 deletions src/client/api/event.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,31 +27,6 @@ static __thread bool ev_thpriv_is_init;
*/
static uint32_t ev_prog_timeout;

#define EQ_WITH_CRT

#if !defined(EQ_WITH_CRT)

#define crt_init(a,b,c) ({0;})
#define crt_finalize() ({0;})
#define crt_context_create(a, b) ({0;})
#define crt_context_destroy(a, b) ({0;})
#define crt_progress_cond(ctx, timeout, cb, args) \
({ \
int __rc = cb(args); \
\
while ((timeout) != 0 && __rc == 0) { \
sleep(1); \
__rc = cb(args); \
if ((timeout) < 0) \
continue; \
if ((timeout) < 1000000) \
break; \
(timeout) -= 1000000; \
} \
0; \
})
#endif

/*
* For the moment, we use a global crt_context_t to create all the RPC requests
* this module uses.
Expand Down

0 comments on commit cb138d6

Please sign in to comment.