*: include cleanup (using iwyu)

This commit is contained in:
Max Kellermann
2016-03-01 22:08:13 +01:00
parent fb547260d1
commit 1aee89f5ea
181 changed files with 18 additions and 390 deletions

View File

@@ -27,7 +27,6 @@
#include "fs/AllocatedPath.hxx"
#include "fs/StandardDirectory.hxx"
#include "util/Error.hxx"
#include "Log.hxx"
Database *
CreateConfiguredDatabase(EventLoop &loop, DatabaseListener &listener,

View File

@@ -25,8 +25,6 @@
#include "config/Block.hxx"
#include "DatabasePlugin.hxx"
#include <string.h>
Database *
DatabaseGlobalInit(EventLoop &loop, DatabaseListener &listener,
const ConfigBlock &block, Error &error)

View File

@@ -24,7 +24,6 @@
#include "PlaylistFile.hxx"
#include "Interface.hxx"
#include "DetachedSong.hxx"
#include "storage/StorageInterface.hxx"
#include <functional>

View File

@@ -23,7 +23,6 @@
#include "SongFilter.hxx"
#include "SongPrint.hxx"
#include "TimePrint.hxx"
#include "client/Client.hxx"
#include "client/Response.hxx"
#include "Partition.hxx"
#include "tag/Tag.hxx"

View File

@@ -21,12 +21,10 @@
#define MPD_DB_PRINT_H
#include "tag/Mask.hxx"
#include "Compiler.h"
class SongFilter;
struct DatabaseSelection;
struct Partition;
class Client;
class Response;
class Error;

View File

@@ -43,7 +43,6 @@ static constexpr unsigned DEVICE_INARCHIVE = -1;
*/
static constexpr unsigned DEVICE_CONTAINER = -2;
struct db_visitor;
class SongFilter;
class Error;
class Database;

View File

@@ -31,7 +31,6 @@
#include "util/Error.hxx"
#include "util/Domain.hxx"
#include <stddef.h>
#include <string.h>
#define DIRECTORY_DIR "directory: "

View File

@@ -22,10 +22,8 @@
#include "PrefixedLightSong.hxx"
#include "db/Selection.hxx"
#include "db/LightDirectory.hxx"
#include "db/LightSong.hxx"
#include "db/Interface.hxx"
#include "fs/Traits.hxx"
#include "util/Error.hxx"
#include <string>

View File

@@ -27,7 +27,6 @@
#include "db/LightDirectory.hxx"
#include "Directory.hxx"
#include "Song.hxx"
#include "SongFilter.hxx"
#include "DatabaseSave.hxx"
#include "db/DatabaseLock.hxx"
#include "db/DatabaseError.hxx"

View File

@@ -27,7 +27,6 @@
#include <assert.h>
#include <string.h>
#include <stdlib.h>
inline Song::Song(const char *_uri, size_t uri_length, Directory &_parent)
:parent(&_parent), mtime(0),

View File

@@ -29,7 +29,6 @@
#include <string>
#include <assert.h>
#include <time.h>
struct LightSong;

View File

@@ -22,8 +22,6 @@
#include "Song.hxx"
struct list_head;
void
song_list_sort(SongList &songs);

View File

@@ -19,7 +19,6 @@
#include "config.h"
#include "lib/upnp/ContentDirectoryService.hxx"
#include "lib/upnp/Domain.hxx"
#include "lib/upnp/ixmlwrap.hxx"
#include "lib/upnp/UniqueIxml.hxx"
#include "lib/upnp/Action.hxx"

View File

@@ -21,7 +21,6 @@
#include "UpnpDatabasePlugin.hxx"
#include "Directory.hxx"
#include "Tags.hxx"
#include "lib/upnp/Domain.hxx"
#include "lib/upnp/ClientInit.hxx"
#include "lib/upnp/Discovery.hxx"
#include "lib/upnp/ContentDirectoryService.hxx"

View File

@@ -36,7 +36,6 @@
#include <string>
#include <sys/stat.h>
#include <string.h>
static Directory *

View File

@@ -32,8 +32,6 @@
#include "tag/TagBuilder.hxx"
#include "Log.hxx"
#include <sys/stat.h>
Directory *
UpdateWalk::MakeDirectoryIfModified(Directory &parent, const char *name,
const StorageFileInfo &info)

View File

@@ -26,7 +26,6 @@
#include "db/plugins/simple/Song.hxx"
#include <assert.h>
#include <stddef.h>
void
DatabaseEditor::DeleteSong(Directory &dir, Song *del)

View File

@@ -26,7 +26,6 @@
struct Directory;
struct Song;
class UpdateRemoveService;
class DatabaseEditor final {
UpdateRemoveService remove;

View File

@@ -32,7 +32,6 @@
#include <assert.h>
#include <string.h>
#include <errno.h>
bool
ExcludeList::LoadFile(Path path_fs)

View File

@@ -25,8 +25,6 @@
#include "system/FatalError.hxx"
#include "Log.hxx"
#include <algorithm>
#include <sys/inotify.h>
#include <unistd.h>
#include <errno.h>

View File

@@ -34,7 +34,6 @@
#include <assert.h>
#include <sys/inotify.h>
#include <sys/stat.h>
#include <string.h>
#include <dirent.h>

View File

@@ -29,9 +29,7 @@
#include "Idle.hxx"
#include "util/Error.hxx"
#include "Log.hxx"
#include "Instance.hxx"
#include "system/FatalError.hxx"
#include "thread/Id.hxx"
#include "thread/Thread.hxx"
#include "thread/Util.hxx"

View File

@@ -19,7 +19,6 @@
#include "config.h" /* must be first for large file support */
#include "UpdateIO.hxx"
#include "UpdateDomain.hxx"
#include "db/plugins/simple/Directory.hxx"
#include "storage/FileInfo.hxx"
#include "storage/StorageInterface.hxx"
@@ -30,7 +29,6 @@
#include "Log.hxx"
#include <errno.h>
#include <unistd.h>
bool
GetInfo(Storage &storage, const char *uri_utf8, StorageFileInfo &info)

View File

@@ -44,7 +44,6 @@
#include "Log.hxx"
#include <assert.h>
#include <sys/stat.h>
#include <string.h>
#include <stdlib.h>
#include <errno.h>

View File

@@ -24,9 +24,6 @@
#include "Editor.hxx"
#include "Compiler.h"
#include <sys/stat.h>
struct stat;
struct StorageFileInfo;
struct Directory;
struct ArchivePlugin;
@@ -141,7 +138,7 @@ private:
/**
* Create the specified directory object if it does not exist
* already or if the #stat object indicates that it has been
* already or if the #StorageFileInfo object indicates that it has been
* modified since the last update. Returns nullptr when it
* exists already and is unmodified.
*