[gedit] Document: remove is_local() (deprecated)



commit b71f88492b67504fea49f2f69cddb07aa4bd8041
Author: Sébastien Wilmet <swilmet gnome org>
Date:   Wed Nov 13 15:39:41 2019 +0100

    Document: remove is_local() (deprecated)

 docs/reference/gedit-sections.txt |  1 -
 gedit/gedit-document.c            | 19 -------------------
 gedit/gedit-document.h            |  3 ---
 3 files changed, 23 deletions(-)
---
diff --git a/docs/reference/gedit-sections.txt b/docs/reference/gedit-sections.txt
index a505c30fc..2293718a5 100644
--- a/docs/reference/gedit-sections.txt
+++ b/docs/reference/gedit-sections.txt
@@ -58,7 +58,6 @@ gedit_document_get_file
 gedit_document_get_uri_for_display
 gedit_document_get_short_name_for_display
 gedit_document_get_mime_type
-gedit_document_is_local
 gedit_document_is_untouched
 gedit_document_is_untitled
 gedit_document_get_deleted
diff --git a/gedit/gedit-document.c b/gedit/gedit-document.c
index bc27c514e..a59b217d6 100644
--- a/gedit/gedit-document.c
+++ b/gedit/gedit-document.c
@@ -1249,25 +1249,6 @@ gedit_document_is_untitled (GeditDocument *doc)
        return gtk_source_file_get_location (priv->file) == NULL;
 }
 
-/**
- * gedit_document_is_local:
- * @doc: a #GeditDocument.
- *
- * Returns: whether the document is local.
- * Deprecated: 3.18: Use gtk_source_file_is_local() instead.
- */
-gboolean
-gedit_document_is_local (GeditDocument *doc)
-{
-       GeditDocumentPrivate *priv;
-
-       g_return_val_if_fail (GEDIT_IS_DOCUMENT (doc), FALSE);
-
-       priv = gedit_document_get_instance_private (doc);
-
-       return gtk_source_file_is_local (priv->file);
-}
-
 /**
  * gedit_document_get_deleted:
  * @doc: a #GeditDocument.
diff --git a/gedit/gedit-document.h b/gedit/gedit-document.h
index ebd8079de..f65c4c1c9 100644
--- a/gedit/gedit-document.h
+++ b/gedit/gedit-document.h
@@ -64,9 +64,6 @@ gboolean       gedit_document_is_untouched                    (GeditDocument       *doc);
 
 gboolean        gedit_document_is_untitled                     (GeditDocument       *doc);
 
-G_DEPRECATED_FOR (gtk_source_file_is_local)
-gboolean        gedit_document_is_local                        (GeditDocument       *doc);
-
 G_DEPRECATED
 gboolean        gedit_document_get_deleted                     (GeditDocument       *doc);
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]