lib/ffmpeg/Error: remove SetFfmpegError(); it's unused now

This commit is contained in:
Max Kellermann 2016-10-31 13:18:47 +01:00
parent ecb8f7362b
commit e9c2885f34
2 changed files with 0 additions and 26 deletions

View File

@ -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);
}

View File

@ -22,18 +22,10 @@
#include <stdexcept>
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