diff --git a/src/sandbox/layers/test_panel/test_panel.cpp b/src/sandbox/layers/test_panel/test_panel.cpp index 216bc5a..88d5ff1 100755 --- a/src/sandbox/layers/test_panel/test_panel.cpp +++ b/src/sandbox/layers/test_panel/test_panel.cpp @@ -53,10 +53,5 @@ namespace tr::layers auto b = std::any_cast(e); hack::log()(b); } - - void test_panel::on_update(time t) - { - - } } diff --git a/src/try_engine/application/application.cpp b/src/try_engine/application/application.cpp index 1efa1db..7e9063c 100755 --- a/src/try_engine/application/application.cpp +++ b/src/try_engine/application/application.cpp @@ -20,9 +20,6 @@ namespace try_engine { m_win->clear(); - for (auto l : m_layers_stack) - l->on_update(time::get_time()); - m_gui->begin_frame(); for (auto l : m_layers_stack) l->gui_render(); diff --git a/src/try_engine/layer/layer.hpp b/src/try_engine/layer/layer.hpp index 3c4d375..e77cbf2 100755 --- a/src/try_engine/layer/layer.hpp +++ b/src/try_engine/layer/layer.hpp @@ -25,7 +25,6 @@ namespace try_engine virtual void gui_render() {}; virtual void on_event(system_event::event&) {}; virtual void on_event(std::any, std::any) {}; - virtual void on_update(time) = 0; }; } diff --git a/src/try_engine/utils/define.hpp b/src/try_engine/utils/define.hpp index ce4fec1..e628e2c 100755 --- a/src/try_engine/utils/define.hpp +++ b/src/try_engine/utils/define.hpp @@ -38,7 +38,6 @@ void gui_render() override;\ void on_event(system_event& e) override;\ void on_event(std::any type, std::any value) override;\ - void on_update(time t) override #define CONSTRUCT_IMPL(name)\ name() : try_engine::layer() { BASE_WINDOW_FLAGS(); };\