From cd0ab73a8c1134ecd10e162ceb1caccb120ec5ff Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sat, 14 Sep 2024 22:53:07 +0200 Subject: [PATCH] Main: remove obsolete global variable "screen" --- src/Main.cxx | 4 ---- src/ncmpc.hxx | 7 ------- 2 files changed, 11 deletions(-) delete mode 100644 src/ncmpc.hxx diff --git a/src/Main.cxx b/src/Main.cxx index de02ffe4..3f0c4da6 100644 --- a/src/Main.cxx +++ b/src/Main.cxx @@ -3,7 +3,6 @@ #include "config.h" #include "Instance.hxx" -#include "ncmpc.hxx" #include "charset.hxx" #include "Options.hxx" #include "Command.hxx" @@ -39,8 +38,6 @@ using std::string_view_literals::operator""sv; -ScreenManager *screen; - #ifndef NCMPC_MINI static void update_xterm_title(struct mpdclient &client) noexcept @@ -295,7 +292,6 @@ try { /* create the global Instance */ Instance instance; - screen = &instance.GetScreenManager(); AtScopeExit() { /* this must be executed after ~Instance(), so we're diff --git a/src/ncmpc.hxx b/src/ncmpc.hxx deleted file mode 100644 index ce69179f..00000000 --- a/src/ncmpc.hxx +++ /dev/null @@ -1,7 +0,0 @@ -// SPDX-License-Identifier: GPL-2.0-or-later -// Copyright The Music Player Daemon Project - -#pragma once - -class ScreenManager; -extern ScreenManager *screen;