[tepl] File: remove is_local()



commit bde83ac05aad177078760aa136240047cae00f4e
Author: Sébastien Wilmet <swilmet gnome org>
Date:   Mon May 18 14:55:05 2020 +0200

    File: remove is_local()

 docs/reference/tepl-sections.txt |  1 -
 tepl/tepl-file.c                 | 23 -----------------------
 tepl/tepl-file.h                 |  3 ---
 3 files changed, 27 deletions(-)
---
diff --git a/docs/reference/tepl-sections.txt b/docs/reference/tepl-sections.txt
index 5f0f98e..13fc4e9 100644
--- a/docs/reference/tepl-sections.txt
+++ b/docs/reference/tepl-sections.txt
@@ -112,7 +112,6 @@ tepl_file_get_location
 tepl_file_set_location
 tepl_file_get_short_name
 tepl_file_get_newline_type
-tepl_file_is_local
 tepl_file_set_mount_operation_factory
 tepl_file_add_uri_to_recent_manager
 <SUBSECTION Standard>
diff --git a/tepl/tepl-file.c b/tepl/tepl-file.c
index 4e068b4..df8804d 100644
--- a/tepl/tepl-file.c
+++ b/tepl/tepl-file.c
@@ -548,29 +548,6 @@ _tepl_file_set_etag (TeplFile    *file,
        file->priv->etag = g_strdup (etag);
 }
 
-/**
- * tepl_file_is_local:
- * @file: a #TeplFile.
- *
- * Returns whether the file is local. If the #TeplFile:location is %NULL,
- * returns %FALSE.
- *
- * Returns: whether the file is local.
- * Since: 1.0
- */
-gboolean
-tepl_file_is_local (TeplFile *file)
-{
-       g_return_val_if_fail (TEPL_IS_FILE (file), FALSE);
-
-       if (file->priv->location == NULL)
-       {
-               return FALSE;
-       }
-
-       return g_file_has_uri_scheme (file->priv->location, "file");
-}
-
 /**
  * tepl_file_add_uri_to_recent_manager:
  * @file: a #TeplFile.
diff --git a/tepl/tepl-file.h b/tepl/tepl-file.h
index 117888a..6af87c1 100644
--- a/tepl/tepl-file.h
+++ b/tepl/tepl-file.h
@@ -106,9 +106,6 @@ void                        tepl_file_set_mount_operation_factory   (TeplFile             
     *file,
                                                                 gpointer                   user_data,
                                                                 GDestroyNotify             notify);
 
-_TEPL_EXTERN
-gboolean               tepl_file_is_local                      (TeplFile *file);
-
 _TEPL_EXTERN
 void                   tepl_file_add_uri_to_recent_manager     (TeplFile *file);
 


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