[vlc-commits] access: fs.h: Remove unneeded common declaration

Hugo Beauzée-Luyssen git at videolan.org
Thu Sep 17 17:53:37 CEST 2020


vlc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Mon Sep 14 14:03:17 2020 +0200| [f9fa60789dff825a0ca138994231e8f9e7f34ba7] | committer: Hugo Beauzée-Luyssen

access: fs.h: Remove unneeded common declaration

DirControl doesn't exist anymore and DirRead is only used from
directory.c so it can be switched to static

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=f9fa60789dff825a0ca138994231e8f9e7f34ba7
---

 modules/access/directory.c | 4 +++-
 modules/access/fs.h        | 2 --
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/modules/access/directory.c b/modules/access/directory.c
index 63ff7e96ff..8b590df944 100644
--- a/modules/access/directory.c
+++ b/modules/access/directory.c
@@ -48,6 +48,8 @@ typedef struct
     DIR *dir;
 } access_sys_t;
 
+static int DirRead (stream_t *access, input_item_node_t *node);
+
 /*****************************************************************************
  * DirInit: Init the directory access with a directory stream
  *****************************************************************************/
@@ -115,7 +117,7 @@ void DirClose(vlc_object_t *obj)
     closedir(sys->dir);
 }
 
-int DirRead (stream_t *access, input_item_node_t *node)
+static int DirRead (stream_t *access, input_item_node_t *node)
 {
     access_sys_t *sys = access->p_sys;
     const char *entry;
diff --git a/modules/access/fs.h b/modules/access/fs.h
index a822b3bc45..bbf1c61ba1 100644
--- a/modules/access/fs.h
+++ b/modules/access/fs.h
@@ -25,6 +25,4 @@ void FileClose (vlc_object_t *);
 
 int DirOpen (vlc_object_t *);
 int DirInit (stream_t *p_access, DIR *handle);
-int DirRead (stream_t *, input_item_node_t *);
-int DirControl (stream_t *, int, va_list);
 void DirClose (vlc_object_t *);



More information about the vlc-commits mailing list