[glib/wip/oholy/remote-attribute-fixes: 23/27] glocalfile: Remove redundant private header



commit d067b5390a343cc04feaf60fc8b16f375308d228
Author: Ondrej Holy <oholy redhat com>
Date:   Thu Jun 11 17:31:39 2020 +0200

    glocalfile: Remove redundant private header
    
    There are glocalfile.h and glocalfileprivate.h header files currently.
    None of those header files is public, so it doesn't make sense to have
    two private headers for glocalfile.c. Let's remove glocalfileprivate.h.

 gio/glocalfile.c        |  1 -
 gio/glocalfile.h        |  2 ++
 gio/glocalfileprivate.h | 30 ------------------------------
 gio/gunixmounts.c       |  2 +-
 4 files changed, 3 insertions(+), 32 deletions(-)
---
diff --git a/gio/glocalfile.c b/gio/glocalfile.c
index 9caa35b1c..1effea5fa 100644
--- a/gio/glocalfile.c
+++ b/gio/glocalfile.c
@@ -51,7 +51,6 @@
 
 #include "gfileattribute.h"
 #include "glocalfile.h"
-#include "glocalfileprivate.h"
 #include "glocalfileinfo.h"
 #include "glocalfileenumerator.h"
 #include "glocalfileinputstream.h"
diff --git a/gio/glocalfile.h b/gio/glocalfile.h
index 960cfef1f..f3ec4f294 100644
--- a/gio/glocalfile.h
+++ b/gio/glocalfile.h
@@ -51,6 +51,8 @@ gboolean g_local_file_is_remote (const gchar *filename);
 GFile * g_local_file_new_from_dirname_and_basename (const char *dirname,
                                                     const char *basename);
 
+gchar *_g_local_file_find_topdir_for (const char *file_path);
+
 G_END_DECLS
 
 #endif /* __G_LOCAL_FILE_H__ */
diff --git a/gio/gunixmounts.c b/gio/gunixmounts.c
index 86aa22d66..0d3fa68b0 100644
--- a/gio/gunixmounts.c
+++ b/gio/gunixmounts.c
@@ -64,10 +64,10 @@
 #endif
 
 #include "gunixmounts.h"
-#include "glocalfileprivate.h"
 #include "gfile.h"
 #include "gfilemonitor.h"
 #include "glibintl.h"
+#include "glocalfile.h"
 #include "gthemedicon.h"
 #include "gcontextspecificgroup.h"
 


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