aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorXan Lopez <xlopez@igalia.com>2011-06-30 02:03:40 +0800
committerXan Lopez <xlopez@igalia.com>2011-06-30 02:03:40 +0800
commit5b3154f5ddb95f162389340b178d6fc51b3a3bd7 (patch)
tree3a8864b23bc42022667951be1aae6374bd0a4419 /lib
parent4c444c0f7693b9a0f3058729bea04832b66d6214 (diff)
downloadgsoc2013-epiphany-5b3154f5ddb95f162389340b178d6fc51b3a3bd7.tar
gsoc2013-epiphany-5b3154f5ddb95f162389340b178d6fc51b3a3bd7.tar.gz
gsoc2013-epiphany-5b3154f5ddb95f162389340b178d6fc51b3a3bd7.tar.bz2
gsoc2013-epiphany-5b3154f5ddb95f162389340b178d6fc51b3a3bd7.tar.lz
gsoc2013-epiphany-5b3154f5ddb95f162389340b178d6fc51b3a3bd7.tar.xz
gsoc2013-epiphany-5b3154f5ddb95f162389340b178d6fc51b3a3bd7.tar.zst
gsoc2013-epiphany-5b3154f5ddb95f162389340b178d6fc51b3a3bd7.zip
Always use the EphyEmbedShell to know if we are a private instance
We can now get rid of the EphyFileHelpers method.
Diffstat (limited to 'lib')
-rw-r--r--lib/ephy-file-helpers.c15
-rw-r--r--lib/ephy-file-helpers.h1
2 files changed, 0 insertions, 16 deletions
diff --git a/lib/ephy-file-helpers.c b/lib/ephy-file-helpers.c
index 64ea9179a..d996c21ba 100644
--- a/lib/ephy-file-helpers.c
+++ b/lib/ephy-file-helpers.c
@@ -62,7 +62,6 @@
static GHashTable *files = NULL;
static GHashTable *mime_table = NULL;
-static gboolean have_private_profile = FALSE;
static gboolean keep_temp_directory = FALSE; /* for debug purposes */
static char *dot_dir = NULL;
static char *tmp_dir = NULL;
@@ -274,19 +273,6 @@ ephy_dot_dir (void)
}
/**
- * ephy_has_private_profile:
- *
- * Whether Epiphany is running with a private profile (-p command line option).
- *
- * Returns: %TRUE if a private profile is in use
- **/
-gboolean
-ephy_has_private_profile (void)
-{
- return have_private_profile;
-}
-
-/**
* ephy_file_helpers_init:
* @profile_dir: directory to use as Epiphany's profile
* @private_profile: %TRUE if we should use a private profile
@@ -324,7 +310,6 @@ ephy_file_helpers_init (const char *profile_dir,
(GDestroyNotify) g_free,
(GDestroyNotify) g_free);
- have_private_profile = private_profile;
keep_temp_directory = keep_temp_dir;
if (private_profile && profile_dir != NULL)
diff --git a/lib/ephy-file-helpers.h b/lib/ephy-file-helpers.h
index 095f7135d..83d9198d0 100644
--- a/lib/ephy-file-helpers.h
+++ b/lib/ephy-file-helpers.h
@@ -83,7 +83,6 @@ gboolean ephy_file_browse_to (GFile *file,
guint32 user_time);
void ephy_file_delete_directory (const char *path);
void ephy_file_delete_uri (const char *uri);
-gboolean ephy_has_private_profile (void);
void ephy_file_load_accels (void);
void ephy_file_save_accels (void);