Skip to content

Commit

Permalink
{log, macro}: remove unused logging functions
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
  • Loading branch information
Christian Brauner committed Dec 8, 2019
1 parent b53314a commit e35dec0
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 13 deletions.
7 changes: 0 additions & 7 deletions src/lxc/log.h
Expand Up @@ -484,13 +484,6 @@ ATTR_UNUSED static inline void LXC_##LEVEL(struct lxc_log_locinfo* locinfo, \
} while (0)
#endif

#define error_log_errno(__errno__, format, ...) \
({ \
errno = __errno__; \
SYSERROR(format, ##__VA_ARGS__); \
-1; \
})

#define log_error_errno(__ret__, __errno__, format, ...) \
({ \
errno = __errno__; \
Expand Down
6 changes: 0 additions & 6 deletions src/lxc/macro.h
Expand Up @@ -402,12 +402,6 @@ enum {
__internal_fd__; \
})

#define minus_one_set_errno(__errno__) \
({ \
errno = __errno__; \
-1; \
})

#define ret_set_errno(__ret__, __errno__) \
({ \
errno = __errno__; \
Expand Down

0 comments on commit e35dec0

Please sign in to comment.