Skip to content

Commit 41ae898

Browse files
committed
remove pointless wrapper
1 parent 7aca016 commit 41ae898

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

src/core/desktopentry.cpp

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ DesktopEntryScanner::DesktopEntryScanner(DesktopEntryManager* manager): manager(
272272
}
273273

274274
void DesktopEntryScanner::run() {
275-
auto desktopPaths = manager->getDesktopDirectories();
275+
auto desktopPaths = manager->monitor->getDesktopDirectories();
276276
auto scanResults = DesktopEntryScanResults();
277277

278278
for (auto& path: std::ranges::reverse_view(desktopPaths)) {
@@ -328,7 +328,7 @@ DesktopEntryManager::DesktopEntryManager() {
328328
}
329329

330330
void DesktopEntryManager::scanDesktopEntries() {
331-
auto desktopPaths = this->getDesktopDirectories();
331+
auto desktopPaths = this->monitor->getDesktopDirectories();
332332
auto scanResults = DesktopEntryScanResults();
333333

334334
qCDebug(logDesktopEntry) << "Creating desktop entry scanners";
@@ -399,10 +399,6 @@ void DesktopEntryManager::handleFileChanges() {
399399
QThreadPool::globalInstance()->start(scanner);
400400
}
401401

402-
QStringList DesktopEntryManager::getDesktopDirectories() const {
403-
return this->monitor->getDesktopDirectories();
404-
}
405-
406402
QString DesktopEntryManager::extractIdFromPath(const QString& path) {
407403
auto info = QFileInfo(path);
408404
auto id = info.completeBaseName();

src/core/desktopentry.hpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,6 @@ class DesktopEntryManager: public QObject {
186186
static DesktopEntryManager* instance();
187187

188188
QString extractIdFromPath(const QString& path);
189-
QStringList getDesktopDirectories() const;
190189

191190
signals:
192191
void applicationsChanged();

0 commit comments

Comments
 (0)