From f9a658f82333ec370b2e17e1d39d1c57c25463d8 Mon Sep 17 00:00:00 2001 From: JosephMcc Date: Mon, 26 Dec 2016 19:04:39 -0800 Subject: [PATCH] taglist plugin: don't look for taglist in non-existing legacy dirs --- plugins/taglist/xed-taglist-plugin-parser.c | 22 --------------------- 1 file changed, 22 deletions(-) diff --git a/plugins/taglist/xed-taglist-plugin-parser.c b/plugins/taglist/xed-taglist-plugin-parser.c index 99c3ab4..bb0bdc1 100644 --- a/plugins/taglist/xed-taglist-plugin-parser.c +++ b/plugins/taglist/xed-taglist-plugin-parser.c @@ -44,7 +44,6 @@ #include "xed-taglist-plugin-parser.h" /* we screwed up so we still look here for compatibility */ -#define USER_XED_TAGLIST_PLUGIN_LOCATION_LEGACY ".xed/plugins/taglist/" #define USER_XED_TAGLIST_PLUGIN_LOCATION "xed/taglist/" TagList* taglist = NULL; @@ -603,32 +602,11 @@ TagList* create_taglist(const gchar* data_dir) } const gchar* home; - const gchar* envvar; /* load user's taglists */ - /* legacy dir */ home = g_get_home_dir (); if (home != NULL) - { - pdir = g_build_filename (home, - USER_XED_TAGLIST_PLUGIN_LOCATION_LEGACY, - NULL); - parse_taglist_dir (pdir); - g_free (pdir); - } - - /* Support old libmate env var */ - envvar = g_getenv ("MATE22_USER_DIR"); - if (envvar != NULL) - { - pdir = g_build_filename (envvar, - USER_XED_TAGLIST_PLUGIN_LOCATION, - NULL); - parse_taglist_dir (pdir); - g_free (pdir); - } - else if (home != NULL) { pdir = g_build_filename(home, ".config", USER_XED_TAGLIST_PLUGIN_LOCATION, NULL); parse_taglist_dir(pdir);