summaryrefslogtreecommitdiffhomepage
path: root/editor
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2022-10-26 14:18:28 +0200
committerStanislaw Halik <sthalik@misaki.pl>2022-10-26 14:18:28 +0200
commit6989441da856f9f88817449ac073319d6b6a5f56 (patch)
tree9173d1baa866b26b2582b8421541d9d4fcb17f21 /editor
parent699e5e7678531884b665e564cf58085a2f867762 (diff)
delete some obsolete functions
Diffstat (limited to 'editor')
-rw-r--r--editor/app.hpp2
-rw-r--r--editor/update.cpp14
2 files changed, 0 insertions, 16 deletions
diff --git a/editor/app.hpp b/editor/app.hpp
index 0ae1ff95..79e0642b 100644
--- a/editor/app.hpp
+++ b/editor/app.hpp
@@ -70,8 +70,6 @@ private:
void maybe_initialize_chunk_(const chunk_coords& pos, chunk& c);
- void do_mouse_click(global_coords pos, int button);
- void do_mouse_release(int button);
void do_mouse_move(global_coords pos);
void do_camera(float dt);
diff --git a/editor/update.cpp b/editor/update.cpp
index e9a79be8..7e72de5e 100644
--- a/editor/update.cpp
+++ b/editor/update.cpp
@@ -35,20 +35,6 @@ void app::maybe_initialize_chunk([[maybe_unused]] const chunk_coords& pos, [[may
//maybe_initialize_chunk_(pos, c);
}
-void app::do_mouse_click(const global_coords pos, int button)
-{
- if (button == mouse_button_left)
- _editor.on_click(M->world(), pos);
- else
- _editor.on_release();
-}
-
-void app::do_mouse_release(int button)
-{
- (void)button;
- _editor.on_release();
-}
-
void app::do_mouse_move(global_coords pos)
{
_editor.on_mouse_move(M->world(), pos);