From 19854519dca9943cb405a3c6e8d81bf14d4b32d6 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 10 Sep 2024 17:45:34 +0200 Subject: [PATCH] Main: remove unused global variable "global_instance" --- src/Main.cxx | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/Main.cxx b/src/Main.cxx index 754a102d..937ab548 100644 --- a/src/Main.cxx +++ b/src/Main.cxx @@ -38,8 +38,6 @@ using std::string_view_literals::operator""sv; -static Instance *global_instance; - ScreenManager *screen; #ifndef NCMPC_MINI @@ -297,7 +295,6 @@ try { /* create the global Instance */ Instance instance; - global_instance = &instance; screen = &instance.GetScreenManager(); AtScopeExit() {