Remove stub.hpp and the orphaned function using it

All this was used only by the no-op the_end() implementation.
This commit is contained in:
Ignacio R. Morelle 2013-09-16 04:30:35 -03:00
parent 474651de46
commit ede9848bd8
6 changed files with 0 additions and 35 deletions

View file

@ -666,7 +666,6 @@
<Unit filename="../../src/storyscreen/part.hpp" />
<Unit filename="../../src/storyscreen/render.cpp" />
<Unit filename="../../src/storyscreen/render.hpp" />
<Unit filename="../../src/stub.hpp" />
<Unit filename="../../src/team.cpp" />
<Unit filename="../../src/team.hpp" />
<Unit filename="../../src/terrain.cpp" />

View file

@ -900,7 +900,6 @@
<Unit filename="..\..\src\storyscreen\part.hpp" />
<Unit filename="..\..\src\storyscreen\render.cpp" />
<Unit filename="..\..\src\storyscreen\render.hpp" />
<Unit filename="..\..\src\stub.hpp" />
<Unit filename="..\..\src\team.cpp" />
<Unit filename="..\..\src\team.hpp" />
<Unit filename="..\..\src\terrain.cpp" />

View file

@ -4465,7 +4465,6 @@
<File Name="../../src/mp_game_settings.cpp"/>
<File Name="../../src/side_filter.hpp"/>
<File Name="../../src/formula_string_utils.hpp"/>
<File Name="../../src/stub.hpp"/>
<File Name="../../src/save_blocker.hpp"/>
<File Name="../../src/map.hpp"/>
<File Name="../../src/video.hpp"/>

View file

@ -1248,7 +1248,6 @@
B52EE8C3121359A600CFBDAB /* savegame.hpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; path = savegame.hpp; sourceTree = "<group>"; };
B52EE8C4121359A600CFBDAB /* sound_music_track.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = sound_music_track.cpp; sourceTree = "<group>"; };
B52EE8C5121359A600CFBDAB /* sound_music_track.hpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; path = sound_music_track.hpp; sourceTree = "<group>"; };
B52EE8C6121359A600CFBDAB /* stub.hpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; path = stub.hpp; sourceTree = "<group>"; };
B52EE8C7121359A600CFBDAB /* unit_helper.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = unit_helper.cpp; sourceTree = "<group>"; };
B52EE8C8121359A600CFBDAB /* unit_helper.hpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; path = unit_helper.hpp; sourceTree = "<group>"; };
B52EE8FE12135AC300CFBDAB /* action.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = action.cpp; sourceTree = "<group>"; };
@ -2320,7 +2319,6 @@
B52EE8C3121359A600CFBDAB /* savegame.hpp */,
B52EE8C4121359A600CFBDAB /* sound_music_track.cpp */,
B52EE8C5121359A600CFBDAB /* sound_music_track.hpp */,
B52EE8C6121359A600CFBDAB /* stub.hpp */,
B52EE8C7121359A600CFBDAB /* unit_helper.cpp */,
B52EE8C8121359A600CFBDAB /* unit_helper.hpp */,
B52EE8821213585300CFBDAB /* tod_manager.cpp */,

View file

@ -34,9 +34,6 @@
static lg::log_domain log_engine("engine");
#define LOG_NG LOG_STREAM(info, log_engine)
// TODO: remove when completed
#include "stub.hpp"
void show_story(display &disp, const std::string &scenario_name,
const config::const_child_itors &story)
{
@ -70,15 +67,3 @@ void show_story(display &disp, const std::string &scenario_name,
}
return;
}
void show_endscreen(display& /*disp*/, const t_string& /*text*/, unsigned int /*duration*/)
{
STUB();
LOG_NG << "show_endscreen() invoked...\n";
config story_cfg;
// FIXME: stub!
LOG_NG << "show_endscreen() completed...\n";
}

View file

@ -1,15 +0,0 @@
/*
By Ignacio R. Morelle <shadowm2006@gmail.com>
Part of the Battle for Wesnoth Project http://www.wesnoth.org/
This source code file is not copyrighted.
*/
#ifndef STUB_HPP_INCLUDED
#define STUB_HPP_INCLUDED
#include <boost/current_function.hpp>
#define STUB() \
std::cerr << "Ouch[stub]: " << BOOST_CURRENT_FUNCTION << " [at " << __FILE__ << ":" << __LINE__ << "]\n"
#endif