From e9c2885f3475930107a4984db2cd9823c053054f Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Mon, 31 Oct 2016 13:18:47 +0100 Subject: [PATCH] lib/ffmpeg/Error: remove SetFfmpegError(); it's unused now --- src/lib/ffmpeg/Error.cxx | 18 ------------------ src/lib/ffmpeg/Error.hxx | 8 -------- 2 files changed, 26 deletions(-) diff --git a/src/lib/ffmpeg/Error.cxx b/src/lib/ffmpeg/Error.cxx index 2b9cc5a6c..24355b988 100644 --- a/src/lib/ffmpeg/Error.cxx +++ b/src/lib/ffmpeg/Error.cxx @@ -19,8 +19,6 @@ #include "config.h" #include "Error.hxx" -#include "Domain.hxx" -#include "util/Error.hxx" #include "util/RuntimeError.hxx" extern "C" { @@ -42,19 +40,3 @@ MakeFfmpegError(int errnum, const char *prefix) av_strerror(errnum, msg, sizeof(msg)); return FormatRuntimeError("%s: %s", prefix, msg); } - -void -SetFfmpegError(Error &error, int errnum) -{ - char msg[256]; - av_strerror(errnum, msg, sizeof(msg)); - error.Set(ffmpeg_domain, errnum, msg); -} - -void -SetFfmpegError(Error &error, int errnum, const char *prefix) -{ - char msg[256]; - av_strerror(errnum, msg, sizeof(msg)); - error.Format(ffmpeg_domain, errnum, "%s: %s", prefix, msg); -} diff --git a/src/lib/ffmpeg/Error.hxx b/src/lib/ffmpeg/Error.hxx index 028dffbaa..1bdc4cbb7 100644 --- a/src/lib/ffmpeg/Error.hxx +++ b/src/lib/ffmpeg/Error.hxx @@ -22,18 +22,10 @@ #include -class Error; - std::runtime_error MakeFfmpegError(int errnum); std::runtime_error MakeFfmpegError(int errnum, const char *prefix); -void -SetFfmpegError(Error &error, int errnum); - -void -SetFfmpegError(Error &error, int errnum, const char *prefix); - #endif