[glom] file_utils: Make a function not part of the API.



commit 89084f23b63ecf9fcc6de98ddce7af6ed667ef44
Author: Murray Cumming <murrayc murrayc com>
Date:   Thu Mar 17 13:38:00 2016 +0100

    file_utils: Make a function not part of the API.

 glom/libglom/file_utils.cc |    2 +-
 glom/libglom/file_utils.h  |    4 ----
 2 files changed, 1 insertions(+), 5 deletions(-)
---
diff --git a/glom/libglom/file_utils.cc b/glom/libglom/file_utils.cc
index c56b202..cdcb79c 100644
--- a/glom/libglom/file_utils.cc
+++ b/glom/libglom/file_utils.cc
@@ -128,7 +128,7 @@ bool delete_file(const std::string& uri)
 
 /** For instance, to find the first file in the directory with a .glom extension.
  */
-Glib::ustring get_directory_child_with_suffix(const Glib::ustring& uri_directory, const std::string& suffix, 
bool recursive)
+static Glib::ustring get_directory_child_with_suffix(const Glib::ustring& uri_directory, const std::string& 
suffix, bool recursive)
 {
   auto directory = Gio::File::create_for_uri(uri_directory);
   auto enumerator = directory->enumerate_children();
diff --git a/glom/libglom/file_utils.h b/glom/libglom/file_utils.h
index 9a80579..2f35b28 100644
--- a/glom/libglom/file_utils.h
+++ b/glom/libglom/file_utils.h
@@ -53,10 +53,6 @@ bool delete_directory(const std::string& uri);
  */
 bool delete_file(const std::string& uri);
 
-/** For instance, to find the first file in the directory with a .glom extension.
- */
-Glib::ustring get_directory_child_with_suffix(const Glib::ustring& uri_directory, const std::string& suffix, 
bool recursive);
-
 /** Get a URI with the extension (any extension, not just .glom) removed.
  */
 Glib::ustring get_file_uri_without_extension(const Glib::ustring& uri);


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