From d68834a740cb3ac396dea12f1d4cb73d309a240e Mon Sep 17 00:00:00 2001 From: monsta Date: Sat, 23 Dec 2017 15:17:49 +0300 Subject: libslab: remove more unused code --- libslab/libslab-utils.c | 30 ------------------------------ 1 file changed, 30 deletions(-) (limited to 'libslab/libslab-utils.c') diff --git a/libslab/libslab-utils.c b/libslab/libslab-utils.c index 622c99c7..5cb74b3f 100644 --- a/libslab/libslab-utils.c +++ b/libslab/libslab-utils.c @@ -13,9 +13,6 @@ #include #include -#define DESKTOP_ITEM_TERMINAL_EMULATOR_FLAG "TerminalEmulator" -#define ALTERNATE_DOCPATH_KEY "DocPath" - static FILE *checkpoint_file; MateDesktopItem * @@ -149,33 +146,6 @@ libslab_handle_g_error (GError **error, const gchar *msg_format, ...) g_free (msg); } -static guint thumbnail_factory_idle_id; -static MateDesktopThumbnailFactory *thumbnail_factory; - -static void -create_thumbnail_factory (void) -{ - /* The thumbnail_factory may already have been created by an applet - * instance that was launched before the current one. - */ - if (thumbnail_factory != NULL) - return; - - libslab_checkpoint ("create_thumbnail_factory(): start"); - - thumbnail_factory = mate_desktop_thumbnail_factory_new (MATE_DESKTOP_THUMBNAIL_SIZE_NORMAL); - - libslab_checkpoint ("create_thumbnail_factory(): end"); -} - -static gboolean -init_thumbnail_factory_idle_cb (gpointer data) -{ - create_thumbnail_factory (); - thumbnail_factory_idle_id = 0; - return FALSE; -} - void libslab_checkpoint (const char *format, ...) { -- cgit v1.2.1