From 454213370784644ff42c728aa4daad1311962bdc Mon Sep 17 00:00:00 2001 From: Celtic Minstrel Date: Sun, 20 Apr 2014 00:50:47 -0400 Subject: [PATCH] Delete another useless function --- osx/boe.main.cpp | 39 --------------------------------------- osx/boe.main.h | 1 - osx/pcedit/pc.main.cpp | 1 - 3 files changed, 41 deletions(-) diff --git a/osx/boe.main.cpp b/osx/boe.main.cpp index 10299a4e..f29043c8 100644 --- a/osx/boe.main.cpp +++ b/osx/boe.main.cpp @@ -285,7 +285,6 @@ void Handle_One_Event() static const long fiveTicks = time_in_ticks(5).asMilliseconds(); static const long twentyTicks = time_in_ticks(20).asMilliseconds(); static const long fortyTicks = time_in_ticks(40).asMilliseconds(); - bool event_in_dialog = false; through_sending(); Handle_Update(); @@ -304,9 +303,6 @@ void Handle_One_Event() clear_sound_memory(); - event_in_dialog = handle_dialog_event(); - - if (event_in_dialog == false) if(map_visible && mini_map.pollEvent(event)){ if(event.type == sf::Event::Closed) { mini_map.setVisible(false); @@ -404,41 +400,6 @@ void Handle_One_Event() mainPtr.display(); // TODO: I'm assuming this needs to be SOMEWHERE, at least. } -// TODO: Not sure what to do here -bool handle_dialog_event() -{ - bool event_was_dlog = false; -#if 0 - short i,item_hit; - cDialog* event_d; - - if (FrontWindow() != NULL) { - if (IsDialogEvent(&event)) { - if (DialogSelect(&event, &event_d, &item_hit)) - for (i = 0; i < 18; i++) - if (event_d == modeless_dialogs[i]) { - /*CloseDialog(modeless_dialogs[i]); - modeless_exists[i] = false; - - event_was_dlog = true; - - SetPort(mainPtr); - SelectWindow(mainPtr); - SetPort(mainPtr); */ - } - - } - - } - -// if ((event.what == keyDown) && (FrontWindow() != mainPtr)) - -// } - -#endif - return event_was_dlog; -} - void Handle_Update() { diff --git a/osx/boe.main.h b/osx/boe.main.h index 11cb8763..b469f16e 100644 --- a/osx/boe.main.h +++ b/osx/boe.main.h @@ -4,7 +4,6 @@ int main(int argc, char* argv[]); void Initialize(void); void Handle_One_Event(); -bool handle_dialog_event() ; void Handle_Update(); void Mouse_Pressed(); void close_program(); diff --git a/osx/pcedit/pc.main.cpp b/osx/pcedit/pc.main.cpp index 862c1d5e..b46bbc20 100644 --- a/osx/pcedit/pc.main.cpp +++ b/osx/pcedit/pc.main.cpp @@ -79,7 +79,6 @@ int main(int argc, char* argv[]); void Initialize(void); void Handle_One_Event(); void Handle_Activate(); -bool handle_dialog_event() ; void Handle_Update(); void Mouse_Pressed(); void handle_apple_menu(int item_hit);