Commit a55bb280 authored by Max Kellermann's avatar Max Kellermann

decoder: include cleanup

parent a2e3dc05
......@@ -26,7 +26,6 @@
#include "plugins/RewindInputPlugin.hxx"
#include "fs/Traits.hxx"
#include "fs/AllocatedPath.hxx"
#include "util/Error.hxx"
#include <stdexcept>
......@@ -35,11 +34,7 @@ InputStream::Open(const char *url,
Mutex &mutex, Cond &cond)
{
if (PathTraitsUTF8::IsAbsolute(url)) {
Error error;
const auto path = AllocatedPath::FromUTF8(url, error);
if (path.IsNull())
throw std::runtime_error(error.GetMessage());
const auto path = AllocatedPath::FromUTF8Throw(url);
return OpenLocalInputStream(path, mutex, cond);
}
......
......@@ -29,7 +29,6 @@
#include "../InputPlugin.hxx"
#include "../AsyncInputStream.hxx"
#include "util/Domain.hxx"
#include "util/Error.hxx"
#include "util/RuntimeError.hxx"
#include "util/StringCompare.hxx"
#include "util/ReusableArray.hxx"
......
......@@ -28,7 +28,6 @@
#include "util/StringUtil.hxx"
#include "util/StringCompare.hxx"
#include "util/RuntimeError.hxx"
#include "util/Error.hxx"
#include "util/Domain.hxx"
#include "system/ByteOrder.hxx"
#include "fs/AllocatedPath.hxx"
......
......@@ -33,7 +33,6 @@
#include "util/StringUtil.hxx"
#include "util/NumberParser.hxx"
#include "util/RuntimeError.hxx"
#include "util/Error.hxx"
#include "util/Domain.hxx"
#include "Log.hxx"
#include "PluginUnavailable.hxx"
......
......@@ -29,7 +29,6 @@
#include "../InputPlugin.hxx"
#include "PluginUnavailable.hxx"
#include "util/StringCompare.hxx"
#include "util/Error.hxx"
extern "C" {
#include <libavformat/avio.h>
......
......@@ -24,7 +24,6 @@
#include "lib/nfs/Glue.hxx"
#include "lib/nfs/FileReader.hxx"
#include "util/StringCompare.hxx"
#include "util/Error.hxx"
#include <string.h>
......
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