From 16157e8a9c896e758ced5571706014bbdf804ffb Mon Sep 17 00:00:00 2001 From: xiyoo0812 Date: Thu, 25 Apr 2024 23:50:47 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=BC=96=E8=AF=91=E9=94=99?= =?UTF-8?q?=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/quanta/src/quanta.cpp | 13 ------------- core/quanta/src/quanta.h | 2 -- 2 files changed, 15 deletions(-) diff --git a/core/quanta/src/quanta.cpp b/core/quanta/src/quanta.cpp index 005ecb92..d752d2a4 100644 --- a/core/quanta/src/quanta.cpp +++ b/core/quanta/src/quanta.cpp @@ -328,16 +328,3 @@ void quanta_app::run() { }; logger::get_logger()->stop(); } - -bool quanta_app::step() { - auto quanta = m_lua.get("quanta"); - if (quanta.get_function("run")) { - quanta.call([&](std::string_view err) { - LOG_FATAL(fmt::format("quanta run err: {} ", err)); - }); - check_input(m_lua); - return true; - } - logger::get_logger()->stop(); - return false; -} \ No newline at end of file diff --git a/core/quanta/src/quanta.h b/core/quanta/src/quanta.h index 2f223d32..504dafff 100644 --- a/core/quanta/src/quanta.h +++ b/core/quanta/src/quanta.h @@ -11,7 +11,6 @@ class quanta_app final ~quanta_app(); void run(); - bool step(); bool initzip(const char* zfile); void setup(int argc, const char* argv[]); void load(int argc, const char* argv[]); @@ -19,7 +18,6 @@ class quanta_app final void set_env(std::string key, std::string value, int over = 0); luakit::lua_table init(); - luakit::kit_state* state() { return &m_lua; }; lua_State* L() { return m_lua.L(); }