From: Christian Brauner Date: Sat, 7 Dec 2019 16:31:50 +0000 (+0100) Subject: {log, macro}: remove unused logging functions X-Git-Tag: lxc-4.0.0~78^2~30 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=08e8091de8218dfa0ba67be25a639587913259d7;p=thirdparty%2Flxc.git {log, macro}: remove unused logging functions Signed-off-by: Christian Brauner --- diff --git a/src/lxc/log.h b/src/lxc/log.h index 553bc2a12..d5bfd42e9 100644 --- a/src/lxc/log.h +++ b/src/lxc/log.h @@ -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__; \ diff --git a/src/lxc/macro.h b/src/lxc/macro.h index b4c9f4e7c..68bd6ca84 100644 --- a/src/lxc/macro.h +++ b/src/lxc/macro.h @@ -442,12 +442,6 @@ enum { __internal_fd__; \ }) -#define minus_one_set_errno(__errno__) \ - ({ \ - errno = __errno__; \ - -1; \ - }) - #define ret_set_errno(__ret__, __errno__) \ ({ \ errno = __errno__; \