Don't close the fd if libinput_add_fd() fails
[platform/upstream/libinput.git] / src / libinput-util.c
index a3534e1..eeb9786 100644 (file)
 #include "libinput-util.h"
 #include "libinput-private.h"
 
-static FILE *g_log_file = NULL;
-
-void
-set_logging_enabled(int enabled)
-{
-       g_log_file = enabled ? stdout : NULL;
-}
-
-void
-log_info(const char *format, ...)
-{
-       va_list ap;
-
-       if (g_log_file) {
-               va_start(ap, format);
-               vfprintf(g_log_file, format, ap);
-               va_end(ap);
-       }
-}
-
 void
 list_init(struct list *list)
 {