test/*: remove GLib logging setup
Obsolete, our logging library doesn't ues GLib anymore.
This commit is contained in:
parent
64e898f6db
commit
8064bbbc3f
@ -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();
|
||||
|
@ -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();
|
||||
|
@ -38,16 +38,6 @@
|
||||
#include <stdio.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);
|
||||
}
|
||||
|
||||
static void
|
||||
dump_text_file(TextInputStream &is)
|
||||
{
|
||||
@ -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();
|
||||
|
@ -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();
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user