Skip to content

Commit

Permalink
Main: remove obsolete global variable "screen"
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxKellermann committed Sep 14, 2024
1 parent 84ce337 commit cd0ab73
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 11 deletions.
4 changes: 0 additions & 4 deletions src/Main.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@

#include "config.h"
#include "Instance.hxx"
#include "ncmpc.hxx"
#include "charset.hxx"
#include "Options.hxx"
#include "Command.hxx"
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -295,7 +292,6 @@ try {

/* create the global Instance */
Instance instance;
screen = &instance.GetScreenManager();

AtScopeExit() {
/* this must be executed after ~Instance(), so we're
Expand Down
7 changes: 0 additions & 7 deletions src/ncmpc.hxx

This file was deleted.

0 comments on commit cd0ab73

Please sign in to comment.