include cleanups (powered by iwyu)

This commit is contained in:
Max Kellermann
2019-07-05 09:59:00 +02:00
parent 9cdebc90a0
commit d663f81420
229 changed files with 67 additions and 397 deletions

View File

@@ -18,8 +18,6 @@
*/
#include "BufferedInputStream.hxx"
#include "thread/Cond.hxx"
#include "thread/Name.hxx"
#include <string.h>

View File

@@ -18,7 +18,7 @@
*/
#include "BufferingInputStream.hxx"
#include "thread/Cond.hxx"
#include "InputStream.hxx"
#include "thread/Name.hxx"
#include <string.h>

View File

@@ -20,10 +20,10 @@
#ifndef MPD_BUFFERING_INPUT_STREAM_BUFFER_HXX
#define MPD_BUFFERING_INPUT_STREAM_BUFFER_HXX
#include "InputStream.hxx"
#include "Ptr.hxx"
#include "Handler.hxx"
#include "thread/Thread.hxx"
#include "thread/Mutex.hxx"
#include "thread/Cond.hxx"
#include "util/SparseBuffer.hxx"

View File

@@ -20,7 +20,7 @@
#include "ProxyInputStream.hxx"
#include "tag/Tag.hxx"
#include <stdexcept>
#include <utility>
ProxyInputStream::ProxyInputStream(InputStreamPtr _input) noexcept
:InputStream(_input->GetURI(), _input->mutex),

View File

@@ -21,9 +21,7 @@
#define MPD_INPUT_READER_HXX
#include "fs/io/Reader.hxx"
#include "util/Compiler.h"
struct Decoder;
class InputStream;
/**

View File

@@ -20,9 +20,6 @@
#include "TextInputStream.hxx"
#include "InputStream.hxx"
#include "util/TextFile.hxx"
#include "Log.hxx"
#include <stdexcept>
#include <assert.h>

View File

@@ -19,6 +19,7 @@
#include "Item.hxx"
#include "Lease.hxx"
#include "input/InputStream.hxx"
#include <assert.h>

View File

@@ -22,12 +22,10 @@
#include "input/BufferingInputStream.hxx"
#include "thread/Mutex.hxx"
#include "util/SparseBuffer.hxx"
#include <boost/intrusive/list.hpp>
#include <boost/intrusive/set_hook.hpp>
#include <memory>
#include <string>
class InputCacheLease;

View File

@@ -20,7 +20,6 @@
#ifndef MPD_INPUT_CACHE_MANAGER_HXX
#define MPD_INPUT_CACHE_MANAGER_HXX
#include "input/Offset.hxx"
#include "thread/Mutex.hxx"
#include "util/Compiler.h"

View File

@@ -30,11 +30,9 @@
#include "../InputPlugin.hxx"
#include "../AsyncInputStream.hxx"
#include "event/Call.hxx"
#include "thread/Cond.hxx"
#include "config/Block.hxx"
#include "util/Domain.hxx"
#include "util/RuntimeError.hxx"
#include "util/StringCompare.hxx"
#include "util/ASCII.hxx"
#include "util/DivideString.hxx"
#include "AudioParser.hxx"

View File

@@ -21,7 +21,6 @@
* CD-Audio handling (requires libcdio_paranoia)
*/
#include "config.h"
#include "CdioParanoiaInputPlugin.hxx"
#include "lib/cdio/Paranoia.hxx"
#include "../InputStream.hxx"
@@ -34,7 +33,6 @@
#include "fs/AllocatedPath.hxx"
#include "Log.hxx"
#include "config/Block.hxx"
#include "config/Domain.hxx"
#include <stdio.h>
#include <stdint.h>

View File

@@ -19,7 +19,6 @@
#include "CurlInputPlugin.hxx"
#include "lib/curl/Error.hxx"
#include "lib/curl/Easy.hxx"
#include "lib/curl/Global.hxx"
#include "lib/curl/Init.hxx"
#include "lib/curl/Request.hxx"
@@ -36,10 +35,8 @@
#include "event/Call.hxx"
#include "event/Loop.hxx"
#include "util/ASCII.hxx"
#include "util/StringUtil.hxx"
#include "util/StringFormat.hxx"
#include "util/NumberParser.hxx"
#include "util/RuntimeError.hxx"
#include "util/Domain.hxx"
#include "Log.hxx"
#include "PluginUnavailable.hxx"

View File

@@ -23,15 +23,9 @@
#include "FfmpegInputPlugin.hxx"
#include "lib/ffmpeg/IOContext.hxx"
#include "lib/ffmpeg/Init.hxx"
#include "lib/ffmpeg/Error.hxx"
#include "../InputStream.hxx"
#include "PluginUnavailable.hxx"
#include "util/StringAPI.hxx"
#include "../InputPlugin.hxx"
#include <iostream>
#include <exception>
#include <typeinfo>
#include <stdexcept>
class FfmpegInputStream final : public InputStream {
Ffmpeg::IOContext io;
@@ -90,7 +84,7 @@ input_ffmpeg_protocols() {
protocols.emplace(schema);
}
}
return protocols;
}

View File

@@ -19,7 +19,6 @@
#include "FileInputPlugin.hxx"
#include "../InputStream.hxx"
#include "../InputPlugin.hxx"
#include "fs/Path.hxx"
#include "fs/FileInfo.hxx"
#include "fs/io/FileReader.hxx"

View File

@@ -21,7 +21,6 @@
#include "input/ThreadInputStream.hxx"
#include "input/InputPlugin.hxx"
#include "system/Error.hxx"
#include "util/ASCII.hxx"
#include <libmms/mmsx.h>

View File

@@ -22,7 +22,6 @@
#include "../InputPlugin.hxx"
#include "lib/nfs/Glue.hxx"
#include "lib/nfs/FileReader.hxx"
#include "util/ASCII.hxx"
/**
* Do not buffer more than this number of bytes. It should be a

View File

@@ -31,11 +31,8 @@
#include "thread/Mutex.hxx"
#include "util/StringCompare.hxx"
#include <stdexcept>
#include <memory>
#include <time.h>
static QobuzClient *qobuz_client;
class QobuzInputStream final

View File

@@ -22,7 +22,6 @@
#include "QobuzSession.hxx"
#include "lib/curl/Form.hxx"
#include "lib/yajl/Callbacks.hxx"
#include "util/RuntimeError.hxx"
using Wrapper = Yajl::CallbacksWrapper<QobuzLoginRequest::ResponseParser>;
static constexpr yajl_callbacks parse_callbacks = {

View File

@@ -21,7 +21,6 @@
#include "QobuzErrorParser.hxx"
#include "QobuzClient.hxx"
#include "lib/yajl/Callbacks.hxx"
#include "util/RuntimeError.hxx"
using Wrapper = Yajl::CallbacksWrapper<QobuzTrackRequest::ResponseParser>;
static constexpr yajl_callbacks parse_callbacks = {

View File

@@ -25,7 +25,6 @@
#include "../MaybeBufferedInputStream.hxx"
#include "PluginUnavailable.hxx"
#include "system/Error.hxx"
#include "util/ASCII.hxx"
#include <libsmbclient.h>

View File

@@ -34,7 +34,6 @@
#include "util/StringCompare.hxx"
#include "Log.hxx"
#include <stdexcept>
#include <memory>
static constexpr Domain tidal_domain("tidal");

View File

@@ -18,7 +18,6 @@
*/
#include "TidalSessionManager.hxx"
#include "lib/curl/Global.hxx"
#include "util/Domain.hxx"
#include "Log.hxx"

View File

@@ -30,9 +30,6 @@
#include <memory>
#include <string>
class CurlRequest;
class TidalLoginRequest;
/**
* Callback class for #TidalSessionManager.
*