summaryrefslogtreecommitdiff
path: root/libcaja-private/caja-debug-log.c
diff options
context:
space:
mode:
authorMonsta <[email protected]>2015-01-12 16:04:13 +0300
committerStefano Karapetsas <[email protected]>2015-01-13 11:55:00 +0100
commit53ec021ce6e0ee923bd86e11b4f516b2a19bc2e8 (patch)
treebc422498f805a6ae0b5495157a7482616ec16259 /libcaja-private/caja-debug-log.c
parentd327a96cfb61acd0ce606c4bf80349454b66bd44 (diff)
downloadcaja-53ec021ce6e0ee923bd86e11b4f516b2a19bc2e8.tar.bz2
caja-53ec021ce6e0ee923bd86e11b4f516b2a19bc2e8.tar.xz
drop support for GLib < 2.36
Closes https://github.com/mate-desktop/caja/pull/372
Diffstat (limited to 'libcaja-private/caja-debug-log.c')
-rw-r--r--libcaja-private/caja-debug-log.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/libcaja-private/caja-debug-log.c b/libcaja-private/caja-debug-log.c
index 446df48e..19462d34 100644
--- a/libcaja-private/caja-debug-log.c
+++ b/libcaja-private/caja-debug-log.c
@@ -30,8 +30,6 @@
#include "caja-debug-log.h"
#include "caja-file.h"
-#include <src/glibcompat.h> /* for g_list_free_full */
-
#define DEFAULT_RING_BUFFER_NUM_LINES 1000
#define KEY_FILE_GROUP "debug log"
@@ -40,11 +38,7 @@
#define MAX_URI_COUNT 20
-#if GLIB_CHECK_VERSION(2, 31, 0)
static GMutex log_mutex;
-#else
-static GStaticMutex log_mutex = G_STATIC_MUTEX_INIT;
-#endif
static GHashTable *domains_hash;
static char **ring_buffer;
@@ -58,21 +52,13 @@ static GSList *milestones_tail;
static void
lock (void)
{
- #if GLIB_CHECK_VERSION(2, 31, 0)
g_mutex_lock (&log_mutex);
- #else
- g_static_mutex_lock (&log_mutex);
- #endif
}
static void
unlock (void)
{
- #if GLIB_CHECK_VERSION(2, 31, 0)
g_mutex_unlock (&log_mutex);
- #else
- g_static_mutex_unlock (&log_mutex);
- #endif
}
void