From 45635d47cba9d7d4359a717b810c5d4e6b4a2848 Mon Sep 17 00:00:00 2001 From: Christoph Sommer Date: Thu, 27 Dec 2007 01:34:39 +0000 Subject: [PATCH] Removed unused GameSession::display_info_box SVN-Revision: 5237 --- src/game_session.cpp | 37 ------------------------------------- src/game_session.hpp | 2 -- 2 files changed, 39 deletions(-) diff --git a/src/game_session.cpp b/src/game_session.cpp index 0a61cd336..8fe62b5ed 100644 --- a/src/game_session.cpp +++ b/src/game_session.cpp @@ -547,43 +547,6 @@ GameSession::get_working_directory() } void -GameSession::display_info_box(const std::string& text) -{ - InfoBox* box = new InfoBox(text); - - bool running = true; - DrawingContext context; - - while(running) { - - // TODO make a screen out of this, another mainloop is ugly - main_controller->update(); - SDL_Event event; - while (SDL_PollEvent(&event)) { - main_controller->process_event(event); - if(event.type == SDL_QUIT) - main_loop->quit(); - } - - if(main_controller->pressed(Controller::JUMP) - || main_controller->pressed(Controller::ACTION) - || main_controller->pressed(Controller::PAUSE_MENU) - || main_controller->pressed(Controller::MENU_SELECT)) - running = false; - else if(main_controller->pressed(Controller::DOWN)) - box->scrolldown(); - else if(main_controller->pressed(Controller::UP)) - box->scrollup(); - box->draw(context); - draw(context); - context.do_drawing(); - sound_manager->update(); - } - - delete box; -} - -void GameSession::start_sequence(const std::string& sequencename) { // handle special "stoptux" sequence diff --git a/src/game_session.hpp b/src/game_session.hpp index 028aa0cbc..54d0ddedd 100644 --- a/src/game_session.hpp +++ b/src/game_session.hpp @@ -66,8 +66,6 @@ public: Vector get_reset_point_pos() { return reset_pos; } - void display_info_box(const std::string& text); - Sector* get_current_sector() { return currentsector; } -- 2.11.0