Skip to content

Commit

Permalink
Remove unused headers.
Browse files Browse the repository at this point in the history
  • Loading branch information
eric-s-raymond committed Nov 9, 2008
1 parent 7313425 commit 9223460
Show file tree
Hide file tree
Showing 204 changed files with 14 additions and 1,149 deletions.
12 changes: 0 additions & 12 deletions src/actions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,33 +17,21 @@
* Recruiting, Fighting.
*/

#include "actions.hpp"
#include "attack_prediction.hpp"
#include "game_config.hpp"
#include "game_errors.hpp"
#include "game_events.hpp"
#include "game_preferences.hpp"
#include "gamestatus.hpp"
#include "gettext.hpp"
#include "halo.hpp"
#include "hotkeys.hpp"
#include "log.hpp"
#include "map.hpp"
#include "menu_events.hpp"
#include "mouse_handler_base.hpp"
#include "pathfind.hpp"
#include "random.hpp"
#include "replay.hpp"
#include "sound.hpp"
#include "statistics.hpp"
#include "unit_abilities.hpp"
#include "unit_display.hpp"
#include "wml_exception.hpp"
#include "wml_separators.hpp"
#include "serialization/binary_wml.hpp"
#include "serialization/parser.hpp"

#include <cassert>

#include <boost/scoped_ptr.hpp>

Expand Down
2 changes: 0 additions & 2 deletions src/addon_checks.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@
#include "global.hpp"
#include "addon_checks.hpp"
#include "config.hpp"
#include <algorithm>
#include <cstring>

static bool two_dots(char a, char b)
{
Expand Down
8 changes: 0 additions & 8 deletions src/addon_management.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@
#include "global.hpp"

#include "addon_management.hpp"
#include "config.hpp"
#include "construct_dialog.hpp"
#include "dialogs.hpp"
#include "filesystem.hpp"
#include "foreach.hpp"
Expand All @@ -28,17 +26,11 @@
#include "gui/dialogs/addon_connect.hpp"
#include "gui/dialogs/message.hpp"
#include "gui/widgets/window.hpp"
#include "log.hpp"
#include "marked-up_text.hpp"
#include "network.hpp"
#include "serialization/parser.hpp"
#include "version.hpp"
#include "wml_separators.hpp"

#include <algorithm>
#include <cstring>
#include <map>
#include <stdexcept>

#define DEFAULT_CAMPAIGND_PORT 15003

Expand Down
10 changes: 0 additions & 10 deletions src/ai.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,37 +17,27 @@
* Artificial intelligence - The computer commands the enemy.
*/

#include "ai.hpp"
#include "ai2.hpp"
#include "ai_dfool.hpp"
#ifdef HAVE_PYTHON
//#include "python_ai.hpp"
#include "ai_python.hpp"
#endif
#include "actions.hpp"
#include "array.hpp"
#include "callable_objects.hpp"
#include "dialogs.hpp"
#include "foreach.hpp"
#include "formula_ai.hpp"
#include "game_config.hpp"
#include "game_events.hpp"
#include "game_preferences.hpp"
#include "gettext.hpp"
#include "log.hpp"
#include "menu_events.hpp"
#include "mouse_handler_base.hpp"
#include "replay.hpp"
#include "statistics.hpp"
#include "unit_display.hpp"
#include "unit.hpp"
#include "playturn.hpp"
#include "wml_exception.hpp"

#include <cassert>
#include <fstream>

#include <boost/scoped_ptr.hpp>

#define DBG_AI LOG_STREAM(debug, ai)
#define LOG_AI LOG_STREAM(info, ai)
Expand Down
3 changes: 0 additions & 3 deletions src/ai_attack.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,9 @@

#include "ai.hpp"
#include "attack_prediction.hpp"
#include "game_config.hpp"
#include "gamestatus.hpp"
#include "map.hpp"
#include "log.hpp"

#include <cassert>

#define LOG_AI LOG_STREAM(info, ai)
#define ERR_AI LOG_STREAM(err, ai)
Expand Down
2 changes: 0 additions & 2 deletions src/ai_dfool.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,7 @@

#include "ai_dfool.hpp"
#include "log.hpp"
#include "variable.hpp"

#include <set>

namespace dfool {
void dfool_ai::play_turn(){
Expand Down
4 changes: 0 additions & 4 deletions src/ai_move.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,11 @@
#include "global.hpp"

#include "ai.hpp"
#include "game_config.hpp"
#include "gettext.hpp"
#include "log.hpp"
#include "map.hpp"
#include "variable.hpp"
#include "wml_exception.hpp"

#include <cassert>
#include <iostream>

#define LOG_AI LOG_STREAM(info, ai)
#define DBG_AI LOG_STREAM(debug, ai)
Expand Down
1 change: 0 additions & 1 deletion src/ai_village.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
#include "log.hpp"
#include "map.hpp"

#include <cassert>
#include <numeric>

#define DBG_AI LOG_STREAM(debug, ai)
Expand Down
4 changes: 0 additions & 4 deletions src/astarsearch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,7 @@ See the COPYING file for more details.
#include "log.hpp"
#include "map.hpp"
#include "pathfind.hpp"
#include "util.hpp"

#include <cassert>
#include <cmath>
#include <iostream>

#define LOG_PF LOG_STREAM(info, engine)
#define DBG_PF LOG_STREAM(debug, engine)
Expand Down
7 changes: 0 additions & 7 deletions src/attack_prediction.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,19 +24,12 @@

#include "attack_prediction.hpp"

#include <cassert>
#include <cstring> // For memset
#include <vector>


// Compile with -O3 -DBENCHMARK for speed testing,
// -DCHECK for testing correctness
// (run tools/wesnoth-attack-sim.c --check on output)
#if defined(BENCHMARK) || defined(CHECK)
#include <time.h>
#include <sys/time.h>
#include <stdio.h>
#include <stdlib.h>
#endif

#ifdef ATTACK_PREDICTION_DEBUG
Expand Down
7 changes: 0 additions & 7 deletions src/attack_prediction_display.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,10 @@
#include "attack_prediction_display.hpp"

#include "attack_prediction.hpp"
#include "dialogs.hpp"
#include "game_events.hpp"
#include "gettext.hpp"
#include "log.hpp"
#include "marked-up_text.hpp"
#include "show_dialog.hpp"
#include "unit_abilities.hpp"
#include "wml_separators.hpp"
#include "unit_display.hpp"

#include <cstdlib>
// Conversion routine for both unscatched and damage change percentage.
static void format_prob(char str_buf[10], const float prob)
{
Expand Down
4 changes: 0 additions & 4 deletions src/builder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,7 @@
#include "config.hpp"
#include "log.hpp"
#include "map.hpp"
#include "pathutils.hpp"
#include "terrain.hpp"
#include "serialization/string_utils.hpp"

#include <cassert>
#include <climits>

#define ERR_NG LOG_STREAM(err, engine)
Expand Down
1 change: 0 additions & 1 deletion src/callable_objects.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@


#include "callable_objects.hpp"
#include "pathutils.hpp"

variant location_callable::get_value(const std::string& key) const
{
Expand Down
14 changes: 0 additions & 14 deletions src/campaign_server/campaign_server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,38 +19,24 @@
* and saves addons under data/.
*/

#include "config.hpp"
#include "filesystem.hpp"
#include "log.hpp"
#include "network.hpp"
#include "network_worker.hpp"
#include "util.hpp"
#include "scoped_resource.hpp"
#include "serialization/binary_wml.hpp"
#include "serialization/binary_or_text.hpp"
#include "serialization/parser.hpp"
#include "game_config.hpp"
#include "addon_checks.hpp"
#include "server/input_stream.hpp"

#include "SDL.h"

#include <iostream>
#include <map>
#include <algorithm> // Required for gcc 4.3.0

#include <boost/iostreams/filter/gzip.hpp>
#include <cstdio>
#include <csignal>

// the fork execute is unix specific only tested on Linux quite sure it won't
// work on Windows not sure which other platforms have a problem with it.
#if !(defined(_WIN32))
#include <errno.h>
#include <stdio.h>
#include <unistd.h>
#include <sys/wait.h>
#include <sys/types.h>
#endif

#define LOG_CS lg::err(lg::network, false)
Expand Down
2 changes: 0 additions & 2 deletions src/cavegen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,7 @@
#include "log.hpp"
#include "map.hpp"
#include "pathfind.hpp"
#include "serialization/string_utils.hpp"

#include <cassert>

#define LOG_NG LOG_STREAM(info, engine)

Expand Down
6 changes: 0 additions & 6 deletions src/clipboard.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,6 @@

#define CLIPBOARD_FUNCS_DEFINED

#include <X11/Xlib.h>
#include <unistd.h>
#include <iostream>

#include "SDL_syswm.h"

Expand Down Expand Up @@ -372,7 +369,6 @@ std::string copy_from_clipboard(const bool mouse)

#endif
#ifdef _WIN32
#include <windows.h>

#define CLIPBOARD_FUNCS_DEFINED

Expand Down Expand Up @@ -444,7 +440,6 @@ std::string copy_from_clipboard(const bool)
#endif

#ifdef __BEOS__
#include <Clipboard.h>

#define CLIPBOARD_FUNCS_DEFINED

Expand Down Expand Up @@ -483,7 +478,6 @@ std::string copy_from_clipboard(const bool)
#ifdef __APPLE__
#define CLIPBOARD_FUNCS_DEFINED

#include <Carbon/Carbon.h>

void copy_to_clipboard(const std::string& text, const bool)
{
Expand Down
6 changes: 0 additions & 6 deletions src/color_range.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,9 @@

#include "game_config.hpp"
#include "global.hpp"
#include "color_range.hpp"
#include "map.hpp"
#include "serialization/string_utils.hpp"

#include <cassert>
#include <set>
#include <string>
#include <cstring>
#include <vector>

std::map<Uint32, Uint32> recolor_range(const color_range& new_range, const std::vector<Uint32>& old_rgb){
std::map<Uint32, Uint32> map_rgb;
Expand Down
6 changes: 0 additions & 6 deletions src/config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,8 @@

#include "global.hpp"

#include <algorithm>
#include <sstream>
#include <string.h>
#include <ostream>
#include "config.hpp"
#include "gettext.hpp"
#include "log.hpp"
#include "util.hpp"

#define ERR_CF LOG_STREAM(err, config)

Expand Down
5 changes: 0 additions & 5 deletions src/config_adapter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,10 @@

#include "global.hpp"

#include <sstream>
#include "config_adapter.hpp"
#include "game_errors.hpp"
#include "game_preferences.hpp"
#include "gamestatus.hpp"
#include "gettext.hpp"
#include "log.hpp"
#include "map.hpp"
#include "team.hpp"
#include "wml_exception.hpp"

#define LOG_NG LOG_STREAM(info, engine)
Expand Down
21 changes: 2 additions & 19 deletions src/construct_dialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,30 +18,13 @@
#define GETTEXT_DOMAIN "wesnoth-lib"

#include "construct_dialog.hpp"
#include "config.hpp"
#include "cursor.hpp"
#include "display.hpp"
#include "events.hpp"
#include "gettext.hpp"
#include "image.hpp"
#include "key.hpp"
#include "sound.hpp"
#include "log.hpp"
#include "marked-up_text.hpp"
#include "thread.hpp"
#include "language.hpp"
#include "sdl_utils.hpp"
#include "tooltips.hpp"
#include "video.hpp"
#include "widgets/button.hpp"
#include "widgets/menu.hpp"
#include "widgets/progressbar.hpp"
#include "widgets/textbox.hpp"

#include "SDL_ttf.h"

#include <iostream>
#include <numeric>



#define ERR_DP LOG_STREAM(err, display)
#define LOG_DP LOG_STREAM(info, display)
Expand Down
Loading

0 comments on commit 9223460

Please sign in to comment.