summaryrefslogtreecommitdiff
path: root/src/db
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2016-03-01 22:08:13 +0100
committerMax Kellermann <max@duempel.org>2016-03-01 22:08:13 +0100
commit1aee89f5ea603d24991c73e2479472577aa28d66 (patch)
tree5ac6038804aa63c3c9a22c613efd734fa5d688fd /src/db
parentfb547260d1b992b64c0ffd78e3bc55db86f90bda (diff)
*: include cleanup (using iwyu)
Diffstat (limited to 'src/db')
-rw-r--r--src/db/Configured.cxx1
-rw-r--r--src/db/DatabaseGlue.cxx2
-rw-r--r--src/db/DatabasePlaylist.cxx1
-rw-r--r--src/db/DatabasePrint.cxx1
-rw-r--r--src/db/DatabasePrint.hxx2
-rw-r--r--src/db/plugins/simple/Directory.hxx1
-rw-r--r--src/db/plugins/simple/DirectorySave.cxx1
-rw-r--r--src/db/plugins/simple/Mount.cxx2
-rw-r--r--src/db/plugins/simple/SimpleDatabasePlugin.cxx1
-rw-r--r--src/db/plugins/simple/Song.cxx1
-rw-r--r--src/db/plugins/simple/Song.hxx1
-rw-r--r--src/db/plugins/simple/SongSort.hxx2
-rw-r--r--src/db/plugins/upnp/ContentDirectoryService.cxx1
-rw-r--r--src/db/plugins/upnp/UpnpDatabasePlugin.cxx1
-rw-r--r--src/db/update/Archive.cxx1
-rw-r--r--src/db/update/Container.cxx2
-rw-r--r--src/db/update/Editor.cxx1
-rw-r--r--src/db/update/Editor.hxx1
-rw-r--r--src/db/update/ExcludeList.cxx1
-rw-r--r--src/db/update/InotifySource.cxx2
-rw-r--r--src/db/update/InotifyUpdate.cxx1
-rw-r--r--src/db/update/Service.cxx2
-rw-r--r--src/db/update/UpdateIO.cxx2
-rw-r--r--src/db/update/Walk.cxx1
-rw-r--r--src/db/update/Walk.hxx5
25 files changed, 1 insertions, 36 deletions
diff --git a/src/db/Configured.cxx b/src/db/Configured.cxx
index 4bef9c1d8..42c1feccd 100644
--- a/src/db/Configured.cxx
+++ b/src/db/Configured.cxx
@@ -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,
diff --git a/src/db/DatabaseGlue.cxx b/src/db/DatabaseGlue.cxx
index 506e1975f..233890a4b 100644
--- a/src/db/DatabaseGlue.cxx
+++ b/src/db/DatabaseGlue.cxx
@@ -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)
diff --git a/src/db/DatabasePlaylist.cxx b/src/db/DatabasePlaylist.cxx
index 585a05080..a052fdfbf 100644
--- a/src/db/DatabasePlaylist.cxx
+++ b/src/db/DatabasePlaylist.cxx
@@ -24,7 +24,6 @@
#include "PlaylistFile.hxx"
#include "Interface.hxx"
#include "DetachedSong.hxx"
-#include "storage/StorageInterface.hxx"
#include <functional>
diff --git a/src/db/DatabasePrint.cxx b/src/db/DatabasePrint.cxx
index c1ecf0bf3..e0c623005 100644
--- a/src/db/DatabasePrint.cxx
+++ b/src/db/DatabasePrint.cxx
@@ -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"
diff --git a/src/db/DatabasePrint.hxx b/src/db/DatabasePrint.hxx
index 81f44e74e..2c85f7c06 100644
--- a/src/db/DatabasePrint.hxx
+++ b/src/db/DatabasePrint.hxx
@@ -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;
diff --git a/src/db/plugins/simple/Directory.hxx b/src/db/plugins/simple/Directory.hxx
index 198b77c8f..2eda91c46 100644
--- a/src/db/plugins/simple/Directory.hxx
+++ b/src/db/plugins/simple/Directory.hxx
@@ -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;
diff --git a/src/db/plugins/simple/DirectorySave.cxx b/src/db/plugins/simple/DirectorySave.cxx
index fec78644b..83664eb4f 100644
--- a/src/db/plugins/simple/DirectorySave.cxx
+++ b/src/db/plugins/simple/DirectorySave.cxx
@@ -31,7 +31,6 @@
#include "util/Error.hxx"
#include "util/Domain.hxx"
-#include <stddef.h>
#include <string.h>
#define DIRECTORY_DIR "directory: "
diff --git a/src/db/plugins/simple/Mount.cxx b/src/db/plugins/simple/Mount.cxx
index 2777e5049..05342a13f 100644
--- a/src/db/plugins/simple/Mount.cxx
+++ b/src/db/plugins/simple/Mount.cxx
@@ -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>
diff --git a/src/db/plugins/simple/SimpleDatabasePlugin.cxx b/src/db/plugins/simple/SimpleDatabasePlugin.cxx
index 88e2c6535..3f4d94131 100644
--- a/src/db/plugins/simple/SimpleDatabasePlugin.cxx
+++ b/src/db/plugins/simple/SimpleDatabasePlugin.cxx
@@ -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"
diff --git a/src/db/plugins/simple/Song.cxx b/src/db/plugins/simple/Song.cxx
index 27b3564cd..a721339b6 100644
--- a/src/db/plugins/simple/Song.cxx
+++ b/src/db/plugins/simple/Song.cxx
@@ -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),
diff --git a/src/db/plugins/simple/Song.hxx b/src/db/plugins/simple/Song.hxx
index 8dd0ecf66..b8428f091 100644
--- a/src/db/plugins/simple/Song.hxx
+++ b/src/db/plugins/simple/Song.hxx
@@ -29,7 +29,6 @@
#include <string>
-#include <assert.h>
#include <time.h>
struct LightSong;
diff --git a/src/db/plugins/simple/SongSort.hxx b/src/db/plugins/simple/SongSort.hxx
index bc0cbd715..d1258a5b3 100644
--- a/src/db/plugins/simple/SongSort.hxx
+++ b/src/db/plugins/simple/SongSort.hxx
@@ -22,8 +22,6 @@
#include "Song.hxx"
-struct list_head;
-
void
song_list_sort(SongList &songs);
diff --git a/src/db/plugins/upnp/ContentDirectoryService.cxx b/src/db/plugins/upnp/ContentDirectoryService.cxx
index 38cb9dcfd..6754b48b7 100644
--- a/src/db/plugins/upnp/ContentDirectoryService.cxx
+++ b/src/db/plugins/upnp/ContentDirectoryService.cxx
@@ -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"
diff --git a/src/db/plugins/upnp/UpnpDatabasePlugin.cxx b/src/db/plugins/upnp/UpnpDatabasePlugin.cxx
index f259533ee..ffd45710b 100644
--- a/src/db/plugins/upnp/UpnpDatabasePlugin.cxx
+++ b/src/db/plugins/upnp/UpnpDatabasePlugin.cxx
@@ -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"
diff --git a/src/db/update/Archive.cxx b/src/db/update/Archive.cxx
index cc892388a..c645211fa 100644
--- a/src/db/update/Archive.cxx
+++ b/src/db/update/Archive.cxx
@@ -36,7 +36,6 @@
#include <string>
-#include <sys/stat.h>
#include <string.h>
static Directory *
diff --git a/src/db/update/Container.cxx b/src/db/update/Container.cxx
index d1b7fe756..8f11ae5f0 100644
--- a/src/db/update/Container.cxx
+++ b/src/db/update/Container.cxx
@@ -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)
diff --git a/src/db/update/Editor.cxx b/src/db/update/Editor.cxx
index 4397c3515..910747a7e 100644
--- a/src/db/update/Editor.cxx
+++ b/src/db/update/Editor.cxx
@@ -26,7 +26,6 @@
#include "db/plugins/simple/Song.hxx"
#include <assert.h>
-#include <stddef.h>
void
DatabaseEditor::DeleteSong(Directory &dir, Song *del)
diff --git a/src/db/update/Editor.hxx b/src/db/update/Editor.hxx
index d7d8c0409..ae50287a4 100644
--- a/src/db/update/Editor.hxx
+++ b/src/db/update/Editor.hxx
@@ -26,7 +26,6 @@
struct Directory;
struct Song;
-class UpdateRemoveService;
class DatabaseEditor final {
UpdateRemoveService remove;
diff --git a/src/db/update/ExcludeList.cxx b/src/db/update/ExcludeList.cxx
index 2cfd4a072..c1dc9face 100644
--- a/src/db/update/ExcludeList.cxx
+++ b/src/db/update/ExcludeList.cxx
@@ -32,7 +32,6 @@
#include <assert.h>
#include <string.h>
-#include <errno.h>
bool
ExcludeList::LoadFile(Path path_fs)
diff --git a/src/db/update/InotifySource.cxx b/src/db/update/InotifySource.cxx
index 26d2392b0..d84d05591 100644
--- a/src/db/update/InotifySource.cxx
+++ b/src/db/update/InotifySource.cxx
@@ -25,8 +25,6 @@
#include "system/FatalError.hxx"
#include "Log.hxx"
-#include <algorithm>
-
#include <sys/inotify.h>
#include <unistd.h>
#include <errno.h>
diff --git a/src/db/update/InotifyUpdate.cxx b/src/db/update/InotifyUpdate.cxx
index 61cf88c2b..cb619b404 100644
--- a/src/db/update/InotifyUpdate.cxx
+++ b/src/db/update/InotifyUpdate.cxx
@@ -34,7 +34,6 @@
#include <assert.h>
#include <sys/inotify.h>
-#include <sys/stat.h>
#include <string.h>
#include <dirent.h>
diff --git a/src/db/update/Service.cxx b/src/db/update/Service.cxx
index cb0af0da3..0383d6bae 100644
--- a/src/db/update/Service.cxx
+++ b/src/db/update/Service.cxx
@@ -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"
diff --git a/src/db/update/UpdateIO.cxx b/src/db/update/UpdateIO.cxx
index 1b0037355..7bf743ce8 100644
--- a/src/db/update/UpdateIO.cxx
+++ b/src/db/update/UpdateIO.cxx
@@ -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)
diff --git a/src/db/update/Walk.cxx b/src/db/update/Walk.cxx
index 9e7d47a1a..41bc1c772 100644
--- a/src/db/update/Walk.cxx
+++ b/src/db/update/Walk.cxx
@@ -44,7 +44,6 @@
#include "Log.hxx"
#include <assert.h>
-#include <sys/stat.h>
#include <string.h>
#include <stdlib.h>
#include <errno.h>
diff --git a/src/db/update/Walk.hxx b/src/db/update/Walk.hxx
index 41b85947b..fd2b5fd42 100644
--- a/src/db/update/Walk.hxx
+++ b/src/db/update/Walk.hxx
@@ -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.
*