removing an unused function

This commit is contained in:
Martin Renold 2007-02-20 18:52:17 +00:00
parent 4ebf8fb001
commit e5514c3c69
2 changed files with 0 additions and 15 deletions

View file

@ -582,19 +582,6 @@ std::string load_game_dialog(display& disp, const config& game_config, const gam
return games[res].name;
}
void unit_speak(const config& message_info, display& disp, const unit_map& units)
{
for(unit_map::const_iterator i = units.begin(); i != units.end(); ++i) {
if(i->second.matches_filter(message_info,i->first)) {
disp.scroll_to_tile(i->first.x,i->first.y);
const surface surface(image::get_image(i->second.profile(),image::UNSCALED));
gui::show_dialog(disp,surface,i->second.underlying_description(),message_info["message"],gui::MESSAGE);
}
}
}
namespace {
static const int unit_preview_border = 10;
}

View file

@ -79,8 +79,6 @@ int get_save_name(display & disp,const std::string& message, const std::string&
//the user will not be asked if they want to show a replay.
std::string load_game_dialog(display& disp, const config& terrain_config, const game_data& data, bool* show_replay);
void unit_speak(const config& message_info, display& disp, const unit_map& units);
/// Show a dialog where the user can navigate through files and select a
/// file. The filename is used as a starting point in the navigation and
/// contains the chosen file when the function returns. Return the