Main: remove unused global variable "main_thread"
This commit is contained in:
parent
9ae7f186bc
commit
243c4e1e83
@ -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();
|
||||||
|
|
||||||
|
@ -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;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user