[vlc-devel] [PATCH 18/18] input: remove unused input_Control

Thomas Guillem thomas at gllm.fr
Fri May 10 16:03:22 CEST 2019


---
 include/vlc_input.h |  8 -----
 po/POTFILES.in      |  1 -
 src/Makefile.am     |  1 -
 src/input/control.c | 77 ---------------------------------------------
 src/libvlccore.sym  |  2 --
 5 files changed, 89 deletions(-)
 delete mode 100644 src/input/control.c

diff --git a/include/vlc_input.h b/include/vlc_input.h
index 30ef412d48..e8e17d1689 100644
--- a/include/vlc_input.h
+++ b/include/vlc_input.h
@@ -531,14 +531,6 @@ typedef void (*input_thread_events_cb)( input_thread_t *input,
                                         const struct vlc_input_event *event,
                                         void *userdata);
 
-/**
- * Input queries
- */
-enum input_query_e
-{
-    INPUT_DUMMY,
-};
-
 /** @}*/
 
 /*****************************************************************************
diff --git a/po/POTFILES.in b/po/POTFILES.in
index 18633f853b..bdd491895f 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -67,7 +67,6 @@ src/config/intf.c
 src/darwin/error.c
 src/extras/libc.c
 src/input/access.c
-src/input/control.c
 src/input/decoder.c
 src/input/decoder.h
 src/input/demux.c
diff --git a/src/Makefile.am b/src/Makefile.am
index bc826dfefe..bc6694586f 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -252,7 +252,6 @@ libvlccore_la_SOURCES = \
 	clock/clock_internal.c \
 	clock/input_clock.c \
 	clock/clock.c \
-	input/control.c \
 	input/decoder.c \
 	input/decoder_helpers.c \
 	input/demux.c \
diff --git a/src/input/control.c b/src/input/control.c
deleted file mode 100644
index 1fe038354e..0000000000
--- a/src/input/control.c
+++ /dev/null
@@ -1,77 +0,0 @@
-/*****************************************************************************
- * control.c
- *****************************************************************************
- * Copyright (C) 1999-2015 VLC authors and VideoLAN
- *
- * Authors: Gildas Bazin <gbazin at videolan.org>
- *
- * This program is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as published by
- * the Free Software Foundation; either version 2.1 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public License
- * along with this program; if not, write to the Free Software Foundation,
- * Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
- *****************************************************************************/
-
-#ifdef HAVE_CONFIG_H
-# include "config.h"
-#endif
-
-#include <vlc_common.h>
-#include <vlc_renderer_discovery.h>
-
-#include <stdio.h>
-#include <stdlib.h>
-#include <assert.h>
-
-#include "input_internal.h"
-#include "event.h"
-#include "resource.h"
-#include "es_out.h"
-
-/****************************************************************************
- * input_Control
- ****************************************************************************/
-/**
- * Control function for inputs.
- * \param p_input input handle
- * \param i_query query type
- * \return VLC_SUCCESS if ok
- */
-int input_Control( input_thread_t *p_input, int i_query, ...  )
-{
-    va_list args;
-    int     i_result;
-
-    va_start( args, i_query );
-    i_result = input_vaControl( p_input, i_query, args );
-    va_end( args );
-
-    return i_result;
-}
-
-int input_vaControl( input_thread_t *p_input, int i_query, va_list args )
-{
-    input_thread_private_t *priv = input_priv(p_input);
-    seekpoint_t *p_bkmk, ***ppp_bkmk;
-    int i_bkmk = 0;
-    int *pi_bkmk;
-    bool b_bool;
-
-    char *psz;
-    vlc_value_t val;
-
-    switch( i_query )
-    {
-        default:
-            msg_Err( p_input, "unknown query 0x%x in %s", i_query, __func__ );
-            return VLC_EGENERIC;
-    }
-}
diff --git a/src/libvlccore.sym b/src/libvlccore.sym
index 7ca1b36a50..cbbf07946f 100644
--- a/src/libvlccore.sym
+++ b/src/libvlccore.sym
@@ -160,7 +160,6 @@ image_HandlerDelete
 image_Mime2Fourcc
 image_Type2Fourcc
 InitMD5
-input_Control
 input_Create
 input_CreateFilename
 input_CreatePreparser
@@ -222,7 +221,6 @@ input_Start
 input_Stop
 input_Hold
 input_Release
-input_vaControl
 input_SetTime
 input_SetPosition
 vlc_readdir_helper_init
-- 
2.20.1



More information about the vlc-devel mailing list