MCPcopy Create free account
hub / github.com/Codeya-IDE/deepin-ide / removeSession

Method removeSession

src/plugins/core/session/sessionmanager.cpp:182–195  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

180}
181
182bool SessionManager::removeSession(const QString &session)
183{
184 if (!d->sessionList.contains(session))
185 return false;
186
187 d->sessionList.removeOne(session);
188 d->lastActiveTimes.remove(session);
189 Q_EMIT sessionRemoved(session);
190
191 const auto &file = sessionFile(session);
192 if (QFile::exists(file))
193 return QFile::remove(file);
194 return false;
195}
196
197void SessionManager::removeSessions(const QStringList &sessions)
198{

Callers

nothing calls this directly

Calls 2

containsMethod · 0.45
removeMethod · 0.45

Tested by

no test coverage detected