Commit 3a171a4d authored by Volker Krause's avatar Volker Krause

Remove no longer needed low-level reservation listing method

parent 1d0216ff
......@@ -73,20 +73,6 @@ bool ReservationManager::hasBatch(const QString &batchId) const
return m_batchToResMap.contains(batchId);
}
QVector<QString> ReservationManager::reservations() const
{
const auto base = reservationsBasePath();
QDir::root().mkpath(base);
QVector<QString> resIds;
for (QDirIterator it(base, QDir::NoDotAndDotDot | QDir::Files); it.hasNext();) {
it.next();
resIds.push_back(it.fileInfo().baseName());
}
return resIds;
}
QVariant ReservationManager::reservation(const QString& id) const
{
if (id.isEmpty()) {
......
......@@ -47,7 +47,6 @@ public:
void setPkPassManager(PkPassManager *mgr);
QVector<QString> reservations() const;
Q_INVOKABLE QVariant reservation(const QString &id) const;
Q_INVOKABLE void addReservation(const QVariant &res);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment