[gedit] GeditDocument: remove is_untouched()



commit b0f67d391d5b2ca325b54748ca444281905c46e5
Author: Sébastien Wilmet <swilmet gnome org>
Date:   Fri Nov 20 07:13:50 2020 +0100

    GeditDocument: remove is_untouched()

 docs/reference/api-breaks.xml     |  7 +++++++
 docs/reference/gedit-sections.txt |  1 -
 gedit/gedit-document.c            | 15 ---------------
 gedit/gedit-document.h            |  2 --
 4 files changed, 7 insertions(+), 18 deletions(-)
---
diff --git a/docs/reference/api-breaks.xml b/docs/reference/api-breaks.xml
index ff20fa2bd..733b58979 100644
--- a/docs/reference/api-breaks.xml
+++ b/docs/reference/api-breaks.xml
@@ -61,6 +61,13 @@
           You can use the <link linkend="TeplFile">TeplFile</link> API instead.
         </para>
       </listitem>
+      <listitem>
+        <para>
+          The <code>gedit_document_is_untouched()</code> function has been
+          removed. You can use the <link linkend="TeplBuffer">TeplBuffer</link>
+          API instead.
+        </para>
+      </listitem>
     </itemizedlist>
   </refsect1>
 
diff --git a/docs/reference/gedit-sections.txt b/docs/reference/gedit-sections.txt
index c7eca980c..e1942a556 100644
--- a/docs/reference/gedit-sections.txt
+++ b/docs/reference/gedit-sections.txt
@@ -54,7 +54,6 @@ gedit_document_new
 gedit_document_get_file
 gedit_document_get_short_name_for_display
 gedit_document_get_mime_type
-gedit_document_is_untouched
 gedit_document_is_untitled
 gedit_document_set_language
 gedit_document_get_content_type
diff --git a/gedit/gedit-document.c b/gedit/gedit-document.c
index faf71f76b..000143912 100644
--- a/gedit/gedit-document.c
+++ b/gedit/gedit-document.c
@@ -1032,21 +1032,6 @@ gedit_document_saved_real (GeditDocument *doc)
                                 doc);
 }
 
-gboolean
-gedit_document_is_untouched (GeditDocument *doc)
-{
-       GeditDocumentPrivate *priv;
-       GFile *location;
-
-       g_return_val_if_fail (GEDIT_IS_DOCUMENT (doc), TRUE);
-
-       priv = gedit_document_get_instance_private (doc);
-
-       location = gtk_source_file_get_location (priv->file);
-
-       return location == NULL && !gtk_text_buffer_get_modified (GTK_TEXT_BUFFER (doc));
-}
-
 gboolean
 gedit_document_is_untitled (GeditDocument *doc)
 {
diff --git a/gedit/gedit-document.h b/gedit/gedit-document.h
index 1a759573c..901d02dc0 100644
--- a/gedit/gedit-document.h
+++ b/gedit/gedit-document.h
@@ -57,8 +57,6 @@ gchar         *gedit_document_get_content_type                (GeditDocument       *doc);
 
 gchar          *gedit_document_get_mime_type                   (GeditDocument       *doc);
 
-gboolean        gedit_document_is_untouched                    (GeditDocument       *doc);
-
 gboolean        gedit_document_is_untitled                     (GeditDocument       *doc);
 
 void            gedit_document_set_language                    (GeditDocument       *doc,


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