diff options
author | Max Kellermann <max@duempel.org> | 2013-12-24 14:13:03 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-12-24 14:13:03 +0100 |
commit | 8064bbbc3f3d3bac50a9cd972106479fd32917cc (patch) | |
tree | a9faedf1fc734ca5919b0216d5302c949e4fea28 /test | |
parent | 64e898f6dbcfe5e584cb308dd3eca411bfd7667d (diff) |
test/*: remove GLib logging setup
Obsolete, our logging library doesn't ues GLib anymore.
Diffstat (limited to 'test')
-rw-r--r-- | test/DumpDatabase.cxx | 12 | ||||
-rw-r--r-- | test/dump_playlist.cxx | 12 | ||||
-rw-r--r-- | test/dump_text_file.cxx | 12 | ||||
-rw-r--r-- | test/run_filter.cxx | 12 | ||||
-rw-r--r-- | test/visit_archive.cxx | 12 |
5 files changed, 0 insertions, 60 deletions
diff --git a/test/DumpDatabase.cxx b/test/DumpDatabase.cxx index 21a12d294..ec7de7e45 100644 --- a/test/DumpDatabase.cxx +++ b/test/DumpDatabase.cxx @@ -39,16 +39,6 @@ using std::endl; #include <stdlib.h> -static void -my_log_func(const gchar *log_domain, gcc_unused GLogLevelFlags log_level, - const gchar *message, gcc_unused gpointer user_data) -{ - if (log_domain != NULL) - g_printerr("%s: %s\n", log_domain, message); - else - g_printerr("%s\n", message); -} - static bool DumpDirectory(const Directory &directory, Error &) { @@ -94,8 +84,6 @@ main(int argc, char **argv) g_thread_init(nullptr); #endif - g_log_set_default_handler(my_log_func, nullptr); - /* initialize MPD */ config_global_init(); diff --git a/test/dump_playlist.cxx b/test/dump_playlist.cxx index 4ac02985a..87952158b 100644 --- a/test/dump_playlist.cxx +++ b/test/dump_playlist.cxx @@ -42,16 +42,6 @@ Directory::Directory() {} Directory::~Directory() {} -static void -my_log_func(const gchar *log_domain, gcc_unused GLogLevelFlags log_level, - const gchar *message, gcc_unused gpointer user_data) -{ - if (log_domain != NULL) - g_printerr("%s: %s\n", log_domain, message); - else - g_printerr("%s\n", message); -} - int main(int argc, char **argv) { const char *uri; @@ -72,8 +62,6 @@ int main(int argc, char **argv) g_thread_init(NULL); #endif - g_log_set_default_handler(my_log_func, NULL); - /* initialize MPD */ config_global_init(); diff --git a/test/dump_text_file.cxx b/test/dump_text_file.cxx index bb84f5cce..dd0cba0f2 100644 --- a/test/dump_text_file.cxx +++ b/test/dump_text_file.cxx @@ -39,16 +39,6 @@ #include <stdlib.h> static void -my_log_func(const gchar *log_domain, gcc_unused GLogLevelFlags log_level, - const gchar *message, gcc_unused gpointer user_data) -{ - if (log_domain != NULL) - g_printerr("%s: %s\n", log_domain, message); - else - g_printerr("%s\n", message); -} - -static void dump_text_file(TextInputStream &is) { std::string line; @@ -109,8 +99,6 @@ int main(int argc, char **argv) g_thread_init(NULL); #endif - g_log_set_default_handler(my_log_func, NULL); - /* initialize MPD */ config_global_init(); diff --git a/test/run_filter.cxx b/test/run_filter.cxx index a35429bc8..790e2145d 100644 --- a/test/run_filter.cxx +++ b/test/run_filter.cxx @@ -45,16 +45,6 @@ mixer_set_volume(gcc_unused Mixer *mixer, return true; } -static void -my_log_func(const gchar *log_domain, gcc_unused GLogLevelFlags log_level, - const gchar *message, gcc_unused gpointer user_data) -{ - if (log_domain != NULL) - g_printerr("%s: %s\n", log_domain, message); - else - g_printerr("%s\n", message); -} - static const struct config_param * find_named_config_block(ConfigOption option, const char *name) { @@ -111,8 +101,6 @@ int main(int argc, char **argv) g_thread_init(NULL); #endif - g_log_set_default_handler(my_log_func, NULL); - /* read configuration file (mpd.conf) */ config_global_init(); diff --git a/test/visit_archive.cxx b/test/visit_archive.cxx index 6e66c4696..bd890de4f 100644 --- a/test/visit_archive.cxx +++ b/test/visit_archive.cxx @@ -35,16 +35,6 @@ #include <unistd.h> #include <stdlib.h> -static void -my_log_func(const gchar *log_domain, gcc_unused GLogLevelFlags log_level, - const gchar *message, gcc_unused gpointer user_data) -{ - if (log_domain != NULL) - g_printerr("%s: %s\n", log_domain, message); - else - g_printerr("%s\n", message); -} - class MyArchiveVisitor final : public ArchiveVisitor { public: virtual void VisitArchiveEntry(const char *path_utf8) override { @@ -71,8 +61,6 @@ main(int argc, char **argv) g_thread_init(NULL); #endif - g_log_set_default_handler(my_log_func, NULL); - /* initialize MPD */ config_global_init(); |