Commit 32bc2c18 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

misc: remove unused vlc_error_string()

parent 4d75329c
......@@ -945,8 +945,6 @@ static inline bool mul_overflow(unsigned long long a, unsigned long long b,
#define EMPTY_STR(str) (!str || !*str)
VLC_API const char *vlc_error_string(int) VLC_USED;
#include <vlc_arrays.h>
/* MSB (big endian)/LSB (little endian) conversions - network order is always
......
......@@ -93,7 +93,6 @@ src/libvlc-module.c
src/misc/actions.c
src/misc/block.c
src/misc/cpu.c
src/misc/error.c
src/misc/es_format.c
src/misc/events.c
src/misc/filter_chain.c
......
......@@ -369,7 +369,6 @@ libvlccore_la_SOURCES = \
misc/objres.c \
misc/variables.h \
misc/variables.c \
misc/error.c \
misc/xml.c \
misc/addons.c \
misc/filter.c \
......
......@@ -533,7 +533,6 @@ vlc_sem_wait
vlc_control_cancel
vlc_GetCPUCount
vlc_CPU
vlc_error_string
vlc_event_attach
vlc_event_detach
vlc_filenamecmp
......
/*****************************************************************************
* error.c: error handling routine
*****************************************************************************
* Copyright (C) 2002-2004 VLC authors and VideoLAN
*
* Authors: Samuel Hocevar <sam@zoy.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.
*****************************************************************************/
/*****************************************************************************
* Preamble
*****************************************************************************/
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include <vlc_common.h>
/*****************************************************************************
* vlc_error_string: strerror() equivalent
*****************************************************************************
* This function returns a string describing the error code passed in the
* argument. A list of all errors can be found in include/vlc_common.h.
*****************************************************************************/
const char *vlc_error_string(int i_err)
{
switch( i_err )
{
case VLC_SUCCESS:
return "no error";
case VLC_ENOMEM:
return "not enough memory";
case VLC_ETIMEOUT:
return "timeout";
case VLC_ENOMOD:
return "module not found";
case VLC_ENOOBJ:
return "object not found";
case VLC_ENOVAR:
return "variable not found";
case VLC_EBADVAR:
return "bad variable value";
case VLC_EGENERIC:
return "generic error";
default:
return "unknown error";
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment