mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-23 07:15:35 +08:00
refactor: Move common dbus function to IContext
This commit is contained in:
@@ -106,12 +106,6 @@ namespace swift::core::context
|
||||
else { m_validator->setCurrentSimulator(CSimulatorInfo::None, {}, {}); }
|
||||
}
|
||||
|
||||
void CContextSimulator::registerWithDBus(CDBusServer *server)
|
||||
{
|
||||
if (!server || getMode() != CCoreFacadeConfig::LocalInDBusServer) { return; }
|
||||
server->addObject(CContextSimulator::ObjectPath(), this);
|
||||
}
|
||||
|
||||
bool CContextSimulator::isSimulatorPluginAvailable() const
|
||||
{
|
||||
return m_simulatorPlugin.second && IContextSimulator::isSimulatorAvailable();
|
||||
|
||||
Reference in New Issue
Block a user