mirror of https://gitee.com/bigwinds/arangodb
removed unused prepare2 method
This commit is contained in:
parent
aea2acbca1
commit
94bc7ed0ad
|
@ -393,27 +393,6 @@ bool ApplicationEndpointServer::prepare () {
|
|||
/// {@inheritDoc}
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
bool ApplicationEndpointServer::prepare2 () {
|
||||
if (_disabled) {
|
||||
return true;
|
||||
}
|
||||
|
||||
// scheduler might be created after prepare(), so we need to use prepare2()!!
|
||||
Scheduler* scheduler = _applicationScheduler->scheduler();
|
||||
|
||||
if (scheduler == nullptr) {
|
||||
LOG_FATAL_AND_EXIT("no scheduler is known, cannot create server");
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
/// {@inheritDoc}
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
bool ApplicationEndpointServer::open () {
|
||||
if (_disabled) {
|
||||
return true;
|
||||
|
|
|
@ -155,12 +155,6 @@ namespace triagens {
|
|||
|
||||
bool prepare ();
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
/// {@inheritDoc}
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
bool prepare2 ();
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
/// {@inheritDoc}
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
|
Loading…
Reference in New Issue