diff --git a/moo/moopython/moopython-loader.c b/moo/moopython/moopython-loader.c index a4e26e76..8195fbb5 100644 --- a/moo/moopython/moopython-loader.c +++ b/moo/moopython/moopython-loader.c @@ -20,7 +20,6 @@ #include "moopython/moopython-loader.h" #include "mooutils/mooutils-misc.h" -#include "mooutils/mooutils-debug.h" #define LIBDIR "lib" diff --git a/moo/mooutils/Makefile.am b/moo/mooutils/Makefile.am index 02cbccb7..a76b3804 100644 --- a/moo/mooutils/Makefile.am +++ b/moo/mooutils/Makefile.am @@ -111,7 +111,6 @@ mooutils_sources = \ mootype-macros.h \ moouixml.c \ mooundo.c \ - mooutils-debug.h \ mooutils-fs.c \ mooutils-gobject-private.h \ mooutils-gobject.c \ diff --git a/moo/mooutils/moomarkup.c b/moo/mooutils/moomarkup.c index 501bca00..628730a6 100644 --- a/moo/mooutils/moomarkup.c +++ b/moo/mooutils/moomarkup.c @@ -14,7 +14,6 @@ #include "mooutils/moomarkup.h" #include "mooutils/mooutils-fs.h" #include "mooutils/mooutils-gobject.h" -#include "mooutils/mooutils-debug.h" #include "mooutils/mooutils-misc.h" #include #include diff --git a/moo/mooutils/mooprefs.c b/moo/mooutils/mooprefs.c index 36eeef4f..7badb091 100644 --- a/moo/mooutils/mooprefs.c +++ b/moo/mooutils/mooprefs.c @@ -16,7 +16,6 @@ #include "mooutils/moomarkup.h" #include "mooutils/mooutils-fs.h" #include "mooutils/mooutils-gobject.h" -#include "mooutils/mooutils-debug.h" #include "mooutils/mootype-macros.h" #include #include diff --git a/moo/mooutils/mooutils-debug.h b/moo/mooutils/mooutils-debug.h deleted file mode 100644 index b7788492..00000000 --- a/moo/mooutils/mooutils-debug.h +++ /dev/null @@ -1,54 +0,0 @@ -/* - * mooutils-debug.h - * - * Copyright (C) 2004-2007 by Yevgen Muntyan - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * See COPYING file that comes with this distribution. - */ - -#ifndef MOO_UTILS_DEBUG_H -#define MOO_UTILS_DEBUG_H - -#include "config.h" -#include -#include -#ifdef HAVE_EXECINFO_H -#include -#endif - -G_BEGIN_DECLS - - -#if defined(MOO_DEBUG) && defined(HAVE_EXECINFO_H) && defined(HAVE_BACKTRACE) -#ifndef MOO_BACKTRACE_DEPTH -#define MOO_BACKTRACE_DEPTH 10 -#endif -#define MOO_BACKTRACE() \ -G_STMT_START { \ - gpointer buf__[MOO_BACKTRACE_DEPTH]; \ - int n_entries__, i__; \ - char **symbols__; \ - \ - n_entries__ = backtrace (buf__, G_N_ELEMENTS (buf__)); \ - symbols__ = backtrace_symbols (buf__, n_entries__); \ - \ - if (symbols__) \ - for (i__ = 0; i__ < n_entries__; ++i__) \ - g_message ("%s", symbols__[i__]); \ - \ - free (symbols__); \ -} G_STMT_END -#else -#define MOO_BACKTRACE() -#endif - - - -G_END_DECLS - -#endif /* MOO_UTILS_DEBUG_H */ diff --git a/moo/mooutils/mooutils-treeview.c b/moo/mooutils/mooutils-treeview.c index 27be6e21..26f256f1 100644 --- a/moo/mooutils/mooutils-treeview.c +++ b/moo/mooutils/mooutils-treeview.c @@ -14,7 +14,6 @@ #include "mooutils/mooutils-treeview.h" #include "mooutils/mooutils-gobject.h" #include "mooutils/moomarshals.h" -#include "mooutils/mooutils-debug.h" #include #include