[gedit] Another useless util
- From: Paolo Borelli <pborelli src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit] Another useless util
- Date: Tue, 6 Jul 2010 20:37:24 +0000 (UTC)
commit db9b16f0e035ec47490203816fd8d4543844803e
Author: Paolo Borelli <pborelli gnome org>
Date: Tue Jul 6 22:31:13 2010 +0200
Another useless util
gedit/gedit-document.c | 2 +-
gedit/gedit-utils.c | 19 -------------------
gedit/gedit-utils.h | 2 --
3 files changed, 1 insertions(+), 22 deletions(-)
---
diff --git a/gedit/gedit-document.c b/gedit/gedit-document.c
index e9ff43b..d1f0bf3 100644
--- a/gedit/gedit-document.c
+++ b/gedit/gedit-document.c
@@ -1907,7 +1907,7 @@ gedit_document_get_deleted (GeditDocument *doc)
g_return_val_if_fail (GEDIT_IS_DOCUMENT (doc), FALSE);
/* This is done sync, maybe we should do it async? */
- return doc->priv->location && !gedit_utils_location_exists (doc->priv->location);
+ return doc->priv->location && !g_file_query_exists (doc->priv->location, NULL);
}
/*
diff --git a/gedit/gedit-utils.c b/gedit/gedit-utils.c
index c43098c..24f7559 100644
--- a/gedit/gedit-utils.c
+++ b/gedit/gedit-utils.c
@@ -313,25 +313,6 @@ gedit_utils_set_atk_relation (GtkWidget *obj1,
g_object_unref (G_OBJECT (relation));
}
-gboolean
-gedit_utils_location_exists (GFile *location)
-{
- gboolean res;
- gchar *uri;
-
- g_return_val_if_fail (G_IS_FILE (location), FALSE);
-
- uri = g_file_get_uri (location);
- gedit_debug_message (DEBUG_UTILS, "text_uri: %s", uri);
- g_free (uri);
-
- res = g_file_query_exists (location, NULL);
-
- gedit_debug_message (DEBUG_UTILS, res ? "TRUE" : "FALSE");
-
- return res;
-}
-
gchar *
gedit_utils_escape_search_text (const gchar* text)
{
diff --git a/gedit/gedit-utils.h b/gedit/gedit-utils.h
index 59e9582..b6e9ae9 100644
--- a/gedit/gedit-utils.h
+++ b/gedit/gedit-utils.h
@@ -95,8 +95,6 @@ void gedit_utils_set_atk_relation (GtkWidget *obj1,
GtkWidget *obj2,
AtkRelationType rel_type);
-gboolean gedit_utils_location_exists (GFile *location);
-
gchar *gedit_utils_escape_search_text (const gchar *text);
gchar *gedit_utils_unescape_search_text (const gchar *text);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]