[gedit] gedit-dirs: remove get_user_cache_dir() (no longer used)
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit] gedit-dirs: remove get_user_cache_dir() (no longer used)
- Date: Thu, 14 Nov 2019 16:22:12 +0000 (UTC)
commit f641a246fbaff482e216197d21e2e51397b1cb26
Author: Sébastien Wilmet <swilmet gnome org>
Date: Thu Nov 14 11:46:58 2019 +0100
gedit-dirs: remove get_user_cache_dir() (no longer used)
It was used for the metadata manager, but it's not really the
appropriate place. Metadata is not a cache, it's user data. Without the
file metadata, the users lose some information (and the next time that
the file is loaded, it relies on automatic/default behavior).
tepl_metadata_manager_init() recommends to use g_get_user_data_dir().
gedit/gedit-dirs.c | 11 -----------
gedit/gedit-dirs.h | 2 --
2 files changed, 13 deletions(-)
---
diff --git a/gedit/gedit-dirs.c b/gedit/gedit-dirs.c
index 5d2661974..5855f4af2 100644
--- a/gedit/gedit-dirs.c
+++ b/gedit/gedit-dirs.c
@@ -27,7 +27,6 @@
#endif
static gchar *user_config_dir = NULL;
-static gchar *user_cache_dir = NULL;
static gchar *user_styles_dir = NULL;
static gchar *user_plugins_dir = NULL;
static gchar *gedit_locale_dir = NULL;
@@ -95,9 +94,6 @@ gedit_dirs_init ()
NULL);
}
- user_cache_dir = g_build_filename (g_get_user_cache_dir (),
- "gedit",
- NULL);
user_config_dir = g_build_filename (g_get_user_config_dir (),
"gedit",
NULL);
@@ -118,7 +114,6 @@ void
gedit_dirs_shutdown ()
{
g_free (user_config_dir);
- g_free (user_cache_dir);
g_free (user_styles_dir);
g_free (user_plugins_dir);
g_free (gedit_locale_dir);
@@ -133,12 +128,6 @@ gedit_dirs_get_user_config_dir (void)
return user_config_dir;
}
-const gchar *
-gedit_dirs_get_user_cache_dir (void)
-{
- return user_cache_dir;
-}
-
const gchar *
gedit_dirs_get_user_styles_dir (void)
{
diff --git a/gedit/gedit-dirs.h b/gedit/gedit-dirs.h
index 899bba5cb..bd51e93fe 100644
--- a/gedit/gedit-dirs.h
+++ b/gedit/gedit-dirs.h
@@ -34,8 +34,6 @@ void gedit_dirs_shutdown (void);
const gchar *gedit_dirs_get_user_config_dir (void);
-const gchar *gedit_dirs_get_user_cache_dir (void);
-
const gchar *gedit_dirs_get_user_styles_dir (void);
const gchar *gedit_dirs_get_user_plugins_dir (void);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]