Remove unused logfile_callback 00/241000/1
authorAgnieszka Baumann <a.baumann@samsung.com>
Thu, 13 Aug 2020 07:46:03 +0000 (09:46 +0200)
committerAgnieszka Baumann <a.baumann@samsung.com>
Thu, 13 Aug 2020 11:03:56 +0000 (13:03 +0200)
Change-Id: I4f42d7e29fd9be4be5eb7ac192a2b002796a478f

include/log_file.h
src/shared/log_file.c

index a6338c7..9ffc184 100644 (file)
@@ -58,13 +58,6 @@ int logfile_rotate_needed(struct log_file *l_file);
 void logfile_do_rotate(struct log_file *file);
 int logfile_write_with_rotation(const dlogutil_entry_s *e, struct log_file *file, dlogutil_sorting_order_e sort_by);
 
-struct logfile_callback_data
-{
-       struct log_file *file;
-       dlogutil_sorting_order_e sort_by;
-};
-int logfile_callback(const dlogutil_entry_s *e, void *userdata);
-
 #ifdef __cplusplus
 }
 #endif
index 19e7fc1..35c81aa 100644 (file)
@@ -270,12 +270,6 @@ int logfile_write_with_rotation(const dlogutil_entry_s *e, struct log_file *file
        return 0;
 }
 
-int logfile_callback(const dlogutil_entry_s *e, void *userdata)
-{
-       struct logfile_callback_data *data = userdata;
-       return logfile_write_with_rotation(e, data->file, data->sort_by);
-}
-
 /**
  * @}
  */