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



commit 4b5fc7c728b4c33ae5b3cb935f174e5c3ff92bb1
Author: Sébastien Wilmet <swilmet gnome org>
Date:   Wed Nov 13 15:36:48 2019 +0100

    Document: remove get_location() (deprecated)

 docs/reference/gedit-sections.txt |  1 -
 gedit/gedit-document.c            | 26 --------------------------
 gedit/gedit-document.h            |  3 ---
 3 files changed, 30 deletions(-)
---
diff --git a/docs/reference/gedit-sections.txt b/docs/reference/gedit-sections.txt
index d1de627c2..a505c30fc 100644
--- a/docs/reference/gedit-sections.txt
+++ b/docs/reference/gedit-sections.txt
@@ -55,7 +55,6 @@ gedit_commands_save_all_documents
 GeditDocument
 gedit_document_new
 gedit_document_get_file
-gedit_document_get_location
 gedit_document_get_uri_for_display
 gedit_document_get_short_name_for_display
 gedit_document_get_mime_type
diff --git a/gedit/gedit-document.c b/gedit/gedit-document.c
index 3032099ab..bc27c514e 100644
--- a/gedit/gedit-document.c
+++ b/gedit/gedit-document.c
@@ -980,32 +980,6 @@ set_content_type (GeditDocument *doc,
        }
 }
 
-/**
- * gedit_document_get_location:
- * @doc: a #GeditDocument
- *
- * Returns: (allow-none) (transfer full): a copy of the internal #GFile
- *
- * Deprecated: 3.14: use gtk_source_file_get_location() instead. Attention,
- * gedit_document_get_location() has a transfer full for the return value, while
- * gtk_source_file_get_location() has a transfer none.
- */
-GFile *
-gedit_document_get_location (GeditDocument *doc)
-{
-       GeditDocumentPrivate *priv;
-       GFile *location;
-
-       priv = gedit_document_get_instance_private (doc);
-
-       g_return_val_if_fail (GEDIT_IS_DOCUMENT (doc), NULL);
-
-       location = gtk_source_file_get_location (priv->file);
-
-       return location != NULL ? g_object_ref (location) : NULL;
-}
-
-
 /**
  * gedit_document_get_uri_for_display:
  * @doc: a #GeditDocument.
diff --git a/gedit/gedit-document.h b/gedit/gedit-document.h
index 3db8663eb..ebd8079de 100644
--- a/gedit/gedit-document.h
+++ b/gedit/gedit-document.h
@@ -52,9 +52,6 @@ GeditDocument   *gedit_document_new                           (void);
 
 GtkSourceFile  *gedit_document_get_file                        (GeditDocument       *doc);
 
-G_DEPRECATED_FOR (gtk_source_file_get_location)
-GFile          *gedit_document_get_location            (GeditDocument       *doc);
-
 gchar          *gedit_document_get_uri_for_display             (GeditDocument       *doc);
 
 gchar          *gedit_document_get_short_name_for_display      (GeditDocument       *doc);


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