From 05807f9888eee79e24da7374ad562c3ed158c938 Mon Sep 17 00:00:00 2001 From: MicroBlock <66859419+std-microblock@users.noreply.github.com> Date: Fri, 4 Oct 2024 04:22:54 +0800 Subject: [PATCH] fix: remove testing code --- cli/cli.cpp | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/cli/cli.cpp b/cli/cli.cpp index e8584fe..f5c8966 100644 --- a/cli/cli.cpp +++ b/cli/cli.cpp @@ -52,28 +52,6 @@ wakeActionToHumanReadable(goodnight::Daemon::Config::WakeupActions action) { } int main(int argc, char **argv) { - - try { - goodnight::DeviceManager deviceManager; - if (auto res = deviceManager.switchHIDDevices(true); !res) { - std::cerr << "Error: " << res.error() << std::endl; - } - - std::this_thread::sleep_for(std::chrono::seconds(5)); - - std::cout << "Restoring devices..." << std::endl; - - if (auto res = deviceManager.restoreHIDDevices(); !res) { - std::cerr << "Error: " << res.error() << std::endl; - } - std::cout << "Done." << std::endl; - } catch (const std::exception &e) { - std::cerr << "Error: " << e.what() << std::endl; - return 1; - } - - return false; - std::cout << R"( ___ _ __ _ _ _ / _ \___ ___ __| | /\ \ (_) __ _| |__ | |_