Instance: remove FinishShutdownPartitions()
The list of partitions is cleared automatically.
This commit is contained in:
parent
6c67408944
commit
98c47d9d36
|
@ -147,7 +147,6 @@ struct Instance final
|
||||||
Partition *FindPartition(const char *name) noexcept;
|
Partition *FindPartition(const char *name) noexcept;
|
||||||
|
|
||||||
void BeginShutdownPartitions() noexcept;
|
void BeginShutdownPartitions() noexcept;
|
||||||
void FinishShutdownPartitions() noexcept;
|
|
||||||
|
|
||||||
#ifdef ENABLE_DATABASE
|
#ifdef ENABLE_DATABASE
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -381,12 +381,6 @@ Instance::BeginShutdownPartitions() noexcept
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
inline void
|
|
||||||
Instance::FinishShutdownPartitions() noexcept
|
|
||||||
{
|
|
||||||
partitions.clear();
|
|
||||||
}
|
|
||||||
|
|
||||||
void
|
void
|
||||||
Instance::OnIdle(unsigned flags)
|
Instance::OnIdle(unsigned flags)
|
||||||
{
|
{
|
||||||
|
@ -667,8 +661,6 @@ mpd_main_after_fork(const ConfigData &raw_config, const Config &config)
|
||||||
|
|
||||||
DeinitFS();
|
DeinitFS();
|
||||||
|
|
||||||
instance->FinishShutdownPartitions();
|
|
||||||
|
|
||||||
return EXIT_SUCCESS;
|
return EXIT_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue