From 6d9b452fde3c5b53994628374cda0e9d52da54f7 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Mon, 22 May 2023 13:48:13 +0200 Subject: [PATCH] lib/ffmpeg/LogError: remove unused library --- src/lib/ffmpeg/LogError.cxx | 42 ------------------------------------- src/lib/ffmpeg/LogError.hxx | 29 ------------------------- src/lib/ffmpeg/meson.build | 1 - 3 files changed, 72 deletions(-) delete mode 100644 src/lib/ffmpeg/LogError.cxx delete mode 100644 src/lib/ffmpeg/LogError.hxx diff --git a/src/lib/ffmpeg/LogError.cxx b/src/lib/ffmpeg/LogError.cxx deleted file mode 100644 index 7cb02278c..000000000 --- a/src/lib/ffmpeg/LogError.cxx +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright 2003-2021 The Music Player Daemon Project - * http://www.musicpd.org - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 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 General Public License for more details. - * - * You should have received a copy of the GNU 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. - */ - -#include "LogError.hxx" -#include "Domain.hxx" -#include "Log.hxx" - -extern "C" { -#include -} - -void -LogFfmpegError(int errnum) -{ - char msg[256]; - av_strerror(errnum, msg, sizeof(msg)); - LogError(ffmpeg_domain, msg); -} - -void -LogFfmpegError(int errnum, const char *prefix) -{ - char msg[256]; - av_strerror(errnum, msg, sizeof(msg)); - FmtError(ffmpeg_domain, "{}: {}", prefix, msg); -} diff --git a/src/lib/ffmpeg/LogError.hxx b/src/lib/ffmpeg/LogError.hxx deleted file mode 100644 index 8951caba6..000000000 --- a/src/lib/ffmpeg/LogError.hxx +++ /dev/null @@ -1,29 +0,0 @@ -/* - * Copyright 2003-2021 The Music Player Daemon Project - * http://www.musicpd.org - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 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 General Public License for more details. - * - * You should have received a copy of the GNU 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. - */ - -#ifndef MPD_FFMPEG_LOG_ERROR_HXX -#define MPD_FFMPEG_LOG_ERROR_HXX - -void -LogFfmpegError(int errnum); - -void -LogFfmpegError(int errnum, const char *prefix); - -#endif diff --git a/src/lib/ffmpeg/meson.build b/src/lib/ffmpeg/meson.build index 43ceef505..d570beb42 100644 --- a/src/lib/ffmpeg/meson.build +++ b/src/lib/ffmpeg/meson.build @@ -30,7 +30,6 @@ ffmpeg = static_library( 'ffmpeg', 'Init.cxx', 'Interleave.cxx', - 'LogError.cxx', 'LogCallback.cxx', 'Error.cxx', 'Domain.cxx',