From 6989441da856f9f88817449ac073319d6b6a5f56 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Wed, 26 Oct 2022 14:18:28 +0200 Subject: delete some obsolete functions --- editor/app.hpp | 2 -- editor/update.cpp | 14 -------------- 2 files changed, 16 deletions(-) (limited to 'editor') 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); -- cgit v1.2.3