]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
{log, macro}: remove unused logging functions
authorChristian Brauner <christian.brauner@ubuntu.com>
Sat, 7 Dec 2019 16:31:50 +0000 (17:31 +0100)
committerChristian Brauner <christian.brauner@ubuntu.com>
Sun, 8 Dec 2019 01:35:37 +0000 (02:35 +0100)
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/log.h
src/lxc/macro.h

index 553bc2a1201b33fdbfc76eac8062b20d45345f57..d5bfd42e97b6342b9271d81a84a84bd87ba76509 100644 (file)
@@ -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__;                       \
index c18f494fc09da6151503170b918c32345beb4f71..f682b622beb1a107e65a8eb297caca34686ecd86 100644 (file)
@@ -402,12 +402,6 @@ enum {
                __internal_fd__;            \
        })
 
-#define minus_one_set_errno(__errno__) \
-       ({                             \
-               errno = __errno__;     \
-               -1;                    \
-       })
-
 #define ret_set_errno(__ret__, __errno__) \
        ({                                \
                errno = __errno__;        \