[vlc-commits] ncurses: remove unused parameter

Rémi Denis-Courmont git at videolan.org
Wed Feb 28 19:12:12 CET 2018


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Wed Feb 28 19:47:19 2018 +0200| [550b2ddd719274ff1878ded329dfd02a1984c16f] | committer: Rémi Denis-Courmont

ncurses: remove unused parameter

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

 modules/gui/ncurses.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/gui/ncurses.c b/modules/gui/ncurses.c
index ab3eeecbde..ef4d5c0bf2 100644
--- a/modules/gui/ncurses.c
+++ b/modules/gui/ncurses.c
@@ -1208,7 +1208,7 @@ static inline void RemoveLastUTF8Entity(char *psz, int len)
     psz[len] = '\0';
 }
 
-static char *GetDiscDevice(intf_thread_t *intf, const char *name)
+static char *GetDiscDevice(const char *name)
 {
     static const struct { const char *s; size_t n; const char *v; } devs[] =
     {
@@ -1253,7 +1253,7 @@ static void Eject(intf_thread_t *intf, input_thread_t *p_input)
     }
 
     name = playlist_CurrentPlayingItem(p_playlist)->p_input->psz_name;
-    device = name ? GetDiscDevice(intf, name) : NULL;
+    device = name ? GetDiscDevice(name) : NULL;
 
     PL_UNLOCK;
 



More information about the vlc-commits mailing list