From 22f0ef6d6b2d2c66def0e0e93442b01089e388e9 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 2 Jan 2013 20:56:04 +0100 Subject: don't include stdbool.h in C++ sources The "bool" type is built-in. --- src/DatabasePrint.hxx | 2 -- src/InotifySource.cxx | 1 - src/InotifyUpdate.cxx | 1 - src/PlaylistFile.hxx | 1 - src/PlaylistPrint.hxx | 1 - src/PlaylistQueue.hxx | 2 -- src/PlaylistSong.hxx | 2 -- src/SongFilter.hxx | 1 - src/UpdateArchive.hxx | 1 - src/UpdateInternal.hxx | 2 -- src/UpdateWalk.hxx | 2 -- src/db/SimpleDatabasePlugin.hxx | 1 - src/decoder/FLACMetaData.cxx | 1 - src/decoder/FLACMetaData.hxx | 1 - 14 files changed, 19 deletions(-) (limited to 'src') diff --git a/src/DatabasePrint.hxx b/src/DatabasePrint.hxx index 4aacd9363..413a923a3 100644 --- a/src/DatabasePrint.hxx +++ b/src/DatabasePrint.hxx @@ -23,8 +23,6 @@ #include "gcc.h" #include "gerror.h" -#include - struct client; class SongFilter; struct DatabaseSelection; diff --git a/src/InotifySource.cxx b/src/InotifySource.cxx index 689468102..16fd62511 100644 --- a/src/InotifySource.cxx +++ b/src/InotifySource.cxx @@ -32,7 +32,6 @@ extern "C" { #include #include #include -#include #undef G_LOG_DOMAIN #define G_LOG_DOMAIN "inotify" diff --git a/src/InotifyUpdate.cxx b/src/InotifyUpdate.cxx index e9350591b..3e438b697 100644 --- a/src/InotifyUpdate.cxx +++ b/src/InotifyUpdate.cxx @@ -31,7 +31,6 @@ extern "C" { #include #include #include -#include #include #include #include diff --git a/src/PlaylistFile.hxx b/src/PlaylistFile.hxx index b20f0d762..6df5a46d3 100644 --- a/src/PlaylistFile.hxx +++ b/src/PlaylistFile.hxx @@ -25,7 +25,6 @@ #include #include -#include #include struct song; diff --git a/src/PlaylistPrint.hxx b/src/PlaylistPrint.hxx index ac0712f01..22db2fe02 100644 --- a/src/PlaylistPrint.hxx +++ b/src/PlaylistPrint.hxx @@ -21,7 +21,6 @@ #define MPD_PLAYLIST_PRINT_HXX #include -#include #include struct client; diff --git a/src/PlaylistQueue.hxx b/src/PlaylistQueue.hxx index e1d3bf391..cda77c818 100644 --- a/src/PlaylistQueue.hxx +++ b/src/PlaylistQueue.hxx @@ -26,8 +26,6 @@ #include "playlist_error.h" -#include - struct playlist_provider; struct playlist; struct player_control; diff --git a/src/PlaylistSong.hxx b/src/PlaylistSong.hxx index f6959715a..117ee1338 100644 --- a/src/PlaylistSong.hxx +++ b/src/PlaylistSong.hxx @@ -20,8 +20,6 @@ #ifndef MPD_PLAYLIST_SONG_HXX #define MPD_PLAYLIST_SONG_HXX -#include - /** * Verifies the song, returns NULL if it is unsafe. Translate the * song to a new song object within the database, if it is a local diff --git a/src/SongFilter.hxx b/src/SongFilter.hxx index a3068a970..afec81300 100644 --- a/src/SongFilter.hxx +++ b/src/SongFilter.hxx @@ -25,7 +25,6 @@ #include #include -#include #define LOCATE_TAG_FILE_TYPE TAG_NUM_OF_ITEM_TYPES+10 #define LOCATE_TAG_ANY_TYPE TAG_NUM_OF_ITEM_TYPES+20 diff --git a/src/UpdateArchive.hxx b/src/UpdateArchive.hxx index 533f8ffd0..5ce63978e 100644 --- a/src/UpdateArchive.hxx +++ b/src/UpdateArchive.hxx @@ -23,7 +23,6 @@ #include "check.h" #include "gcc.h" -#include #include struct directory; diff --git a/src/UpdateInternal.hxx b/src/UpdateInternal.hxx index 76ab7bed3..50443c086 100644 --- a/src/UpdateInternal.hxx +++ b/src/UpdateInternal.hxx @@ -22,8 +22,6 @@ #include "check.h" -#include - extern bool walk_discard; extern bool modified; diff --git a/src/UpdateWalk.hxx b/src/UpdateWalk.hxx index 7fa3083fc..62c0d0a8e 100644 --- a/src/UpdateWalk.hxx +++ b/src/UpdateWalk.hxx @@ -22,8 +22,6 @@ #include "check.h" -#include - void update_walk_global_init(void); diff --git a/src/db/SimpleDatabasePlugin.hxx b/src/db/SimpleDatabasePlugin.hxx index 2ea5c4925..4de39b46c 100644 --- a/src/db/SimpleDatabasePlugin.hxx +++ b/src/db/SimpleDatabasePlugin.hxx @@ -26,7 +26,6 @@ #include #include -#include #include struct directory; diff --git a/src/decoder/FLACMetaData.cxx b/src/decoder/FLACMetaData.cxx index 158e426db..561c1591f 100644 --- a/src/decoder/FLACMetaData.cxx +++ b/src/decoder/FLACMetaData.cxx @@ -32,7 +32,6 @@ extern "C" { #include #include -#include #include static bool diff --git a/src/decoder/FLACMetaData.hxx b/src/decoder/FLACMetaData.hxx index 7b5eb8b0c..0eceec23c 100644 --- a/src/decoder/FLACMetaData.hxx +++ b/src/decoder/FLACMetaData.hxx @@ -26,7 +26,6 @@ #include #include -#include class FLACMetadataChain { FLAC__Metadata_Chain *chain; -- cgit v1.2.3