From ab2d1f02ce4d5e28719200ecfb13482bf33d9669 Mon Sep 17 00:00:00 2001 From: Guillaume Meunier Date: Wed, 7 Feb 2024 19:11:50 +0100 Subject: [PATCH] Cleanup --- client/scenes/lobby.h | 2 -- common/utils/named_thread.h | 6 ------ 2 files changed, 8 deletions(-) diff --git a/client/scenes/lobby.h b/client/scenes/lobby.h index 98381279..41044710 100644 --- a/client/scenes/lobby.h +++ b/client/scenes/lobby.h @@ -128,8 +128,6 @@ public: lobby(); void render(XrTime predicted_display_time, bool should_render) override; - void render_view(XrViewStateFlags flags, XrTime display_time, XrView & view, int swapchain_index, int image_index); - void on_unfocused() override; void on_focused() override; diff --git a/common/utils/named_thread.h b/common/utils/named_thread.h index 8de315a4..a123daf8 100644 --- a/common/utils/named_thread.h +++ b/common/utils/named_thread.h @@ -29,12 +29,6 @@ namespace utils template std::thread named_thread(const std::string& name, Args&&... args) { - // return std::thread([name, args...](){ - // pthread_setname_np(pthread_self(), name.substr(0, 15).c_str()); - // - // std::invoke(std::forward(args)...); - // }); - std::thread t{std::forward(args)...}; pthread_setname_np(t.native_handle(), name.substr(0, 15).c_str()); return t;