diff options
| author | Stanislaw Halik <sthalik@misaki.pl> | 2022-11-01 19:50:42 +0100 |
|---|---|---|
| committer | Stanislaw Halik <sthalik@misaki.pl> | 2022-11-01 19:50:42 +0100 |
| commit | b3f7ae5e7b353d2311700757377a70595af1fe08 (patch) | |
| tree | 774180dac38cd431e424c59ce8121771c13ca6ef /editor | |
| parent | 472767f60387caf955d55d8a43e39e156d5e9457 (diff) | |
editor: kill unused parameter
Diffstat (limited to 'editor')
| -rw-r--r-- | editor/editor.cpp | 6 | ||||
| -rw-r--r-- | editor/editor.hpp | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/editor/editor.cpp b/editor/editor.cpp index f76a42d0..297cd5f8 100644 --- a/editor/editor.cpp +++ b/editor/editor.cpp @@ -302,13 +302,13 @@ void editor::on_mouse_move(world& world, global_coords& pos, int mods) if (pos != _last_pos->coord) { _last_pos = { pos, draw_coord, snap, last.btn }; - on_click_(world, draw_coord, mods, last.btn); + on_click_(world, draw_coord, last.btn); } pos = draw_coord; } } -void editor::on_click_(world& world, global_coords pos, int mods, button b) +void editor::on_click_(world& world, global_coords pos, button b) { if (auto* mode = current(); mode != nullptr) if (auto opt = mode->get_selected(); opt) @@ -328,7 +328,7 @@ void editor::on_click(world& world, global_coords pos, int mods, button b) if (auto* mode = current(); mode != nullptr) { _last_pos = { pos, pos, mode->check_snap(mods), b }; - on_click_(world, pos, mods, b); + on_click_(world, pos, b); } } diff --git a/editor/editor.hpp b/editor/editor.hpp index 66531814..869307c7 100644 --- a/editor/editor.hpp +++ b/editor/editor.hpp @@ -88,7 +88,7 @@ struct editor final enum class button : std::uint8_t { none, place, remove, }; void on_click(world& world, global_coords pos, int mods, button b); - void on_click_(world& world, global_coords pos, int mods, button b); + void on_click_(world& world, global_coords pos, button b); void on_mouse_move(world& world, global_coords& pos, int modifiers); void on_release(); |
