Main: remove unused global variable "main_thread"

This commit is contained in:
Max Kellermann 2014-02-05 17:04:16 +01:00
parent 9ae7f186bc
commit 243c4e1e83
2 changed files with 0 additions and 7 deletions

View File

@ -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[])
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();

View File

@ -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;
/** /**