]> 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>
Sat, 7 Dec 2019 16:31:50 +0000 (17:31 +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 b4c9f4e7c6dfa762cda5f6a698f40398c7cd5b73..68bd6ca844d48551a74ae7e461650e3d28849e32 100644 (file)
@@ -442,12 +442,6 @@ enum {
                __internal_fd__;            \
        })
 
-#define minus_one_set_errno(__errno__) \
-       ({                             \
-               errno = __errno__;     \
-               -1;                    \
-       })
-
 #define ret_set_errno(__ret__, __errno__) \
        ({                                \
                errno = __errno__;        \