Commit 243c4e1e authored by Max Kellermann's avatar Max Kellermann

Main: remove unused global variable "main_thread"

parent 9ae7f186
...@@ -109,8 +109,6 @@ static constexpr unsigned DEFAULT_BUFFER_BEFORE_PLAY = 10; ...@@ -109,8 +109,6 @@ static constexpr unsigned DEFAULT_BUFFER_BEFORE_PLAY = 10;
static constexpr Domain main_domain("main"); static constexpr Domain main_domain("main");
ThreadId main_thread;
Instance *instance; Instance *instance;
static StateFile *state_file; static StateFile *state_file;
...@@ -412,8 +410,6 @@ int mpd_main(int argc, char *argv[]) ...@@ -412,8 +410,6 @@ int mpd_main(int argc, char *argv[])
return EXIT_FAILURE; return EXIT_FAILURE;
} }
main_thread = ThreadId::GetCurrent();
instance = new Instance(); instance = new Instance();
instance->event_loop = new EventLoop(); instance->event_loop = new EventLoop();
......
...@@ -20,12 +20,9 @@ ...@@ -20,12 +20,9 @@
#ifndef MPD_MAIN_HXX #ifndef MPD_MAIN_HXX
#define MPD_MAIN_HXX #define MPD_MAIN_HXX
class ThreadId;
class EventLoop; class EventLoop;
struct Instance; struct Instance;
extern ThreadId main_thread;
extern Instance *instance; extern Instance *instance;
/** /**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment