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

@@ -47,7 +47,6 @@
#ifdef ENABLE_SQLITE
#include "StickerCommands.hxx"
#include "sticker/Database.hxx"
#endif
#include <assert.h>

View File

@@ -27,8 +27,6 @@
#include <system_error>
#include <assert.h>
gcc_const
static enum ack
ToAck(PlaylistResult result) noexcept

View File

@@ -20,8 +20,6 @@
#ifndef MPD_COMMAND_ERROR_HXX
#define MPD_COMMAND_ERROR_HXX
#include "CommandResult.hxx"
#include <exception>
class Response;

View File

@@ -24,20 +24,18 @@
#include "db/DatabasePrint.hxx"
#include "db/Count.hxx"
#include "db/Selection.hxx"
#include "CommandError.hxx"
#include "protocol/RangeArg.hxx"
#include "client/Client.hxx"
#include "client/Response.hxx"
#include "tag/ParseName.hxx"
#include "tag/Mask.hxx"
#include "util/ConstBuffer.hxx"
#include "util/Exception.hxx"
#include "util/StringAPI.hxx"
#include "util/ASCII.hxx"
#include "song/Filter.hxx"
#include "BulkEdit.hxx"
#include <memory>
#include <vector>
CommandResult
handle_listfiles_db(Client &client, Response &r, const char *uri)

View File

@@ -22,7 +22,6 @@
#include "config.h"
#include "FileCommands.hxx"
#include "Request.hxx"
#include "CommandError.hxx"
#include "protocol/Ack.hxx"
#include "client/Client.hxx"
#include "client/Response.hxx"

View File

@@ -22,7 +22,6 @@
#include "Request.hxx"
#include "FileCommands.hxx"
#include "StorageCommands.hxx"
#include "CommandError.hxx"
#include "db/Uri.hxx"
#include "storage/StorageInterface.hxx"
#include "LocateUri.hxx"
@@ -47,7 +46,7 @@
#include "client/Response.hxx"
#include "Partition.hxx"
#include "Instance.hxx"
#include "Idle.hxx"
#include "IdleFlags.hxx"
#include "Log.hxx"
#ifdef ENABLE_DATABASE
@@ -57,7 +56,6 @@
#endif
#include <assert.h>
#include <string.h>
static void
print_spl_list(Response &r, const PlaylistVector &list)

View File

@@ -20,7 +20,6 @@
#include "config.h"
#include "PlayerCommands.hxx"
#include "Request.hxx"
#include "CommandError.hxx"
#include "queue/Playlist.hxx"
#include "PlaylistPrint.hxx"
#include "SingleMode.hxx"
@@ -29,7 +28,7 @@
#include "mixer/Volume.hxx"
#include "Partition.hxx"
#include "Instance.hxx"
#include "Idle.hxx"
#include "IdleFlags.hxx"
#include "AudioFormat.hxx"
#include "util/StringBuffer.hxx"
#include "util/ScopeExit.hxx"

View File

@@ -23,7 +23,6 @@
#include "Instance.hxx"
#include "db/Selection.hxx"
#include "db/DatabasePlaylist.hxx"
#include "CommandError.hxx"
#include "PlaylistSave.hxx"
#include "PlaylistFile.hxx"
#include "PlaylistError.hxx"

View File

@@ -20,7 +20,6 @@
#include "config.h"
#include "QueueCommands.hxx"
#include "Request.hxx"
#include "CommandError.hxx"
#include "protocol/RangeArg.hxx"
#include "db/DatabaseQueue.hxx"
#include "db/Selection.hxx"
@@ -40,7 +39,6 @@
#include "util/StringAPI.hxx"
#include "util/NumberParser.hxx"
#include <memory>
#include <limits>
static void

View File

@@ -24,7 +24,6 @@
#include "sticker/Sticker.hxx"
#include "sticker/SongSticker.hxx"
#include "sticker/Print.hxx"
#include "sticker/Database.hxx"
#include "client/Client.hxx"
#include "client/Response.hxx"
#include "Partition.hxx"

View File

@@ -22,14 +22,12 @@
#include "config.h"
#include "StorageCommands.hxx"
#include "Request.hxx"
#include "CommandError.hxx"
#include "time/ChronoUtil.hxx"
#include "util/UriUtil.hxx"
#include "util/ConstBuffer.hxx"
#include "fs/Traits.hxx"
#include "client/Client.hxx"
#include "client/Response.hxx"
#include "Partition.hxx"
#include "Instance.hxx"
#include "storage/Registry.hxx"
#include "storage/CompositeStorage.hxx"
@@ -37,7 +35,7 @@
#include "db/plugins/simple/SimpleDatabasePlugin.hxx"
#include "db/update/Service.hxx"
#include "TimePrint.hxx"
#include "Idle.hxx"
#include "IdleFlags.hxx"
#include <memory>

View File

@@ -22,7 +22,7 @@
#include "client/Client.hxx"
#include "client/Response.hxx"
#include "tag/ParseName.hxx"
#include "Partition.hxx"
#include "queue/Playlist.hxx"
#include "util/ConstBuffer.hxx"
CommandResult