Commit e9c2885f authored by Max Kellermann's avatar Max Kellermann

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

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