1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2025-12-05 21:15:38 -05:00

Remove useless getter

This commit is contained in:
bbedward
2025-10-08 12:33:00 -04:00
parent 4e271d4f0e
commit 3c420f2e30
2 changed files with 1 additions and 5 deletions

View File

@@ -72,10 +72,6 @@ Singleton {
saveSettings()
}
function getAppUsageRanking() {
return appUsageRanking || {}
}
function getRankedApps() {
var apps = []
for (var appId in appUsageRanking) {

View File

@@ -20,7 +20,7 @@ Singleton {
const queryLower = query.toLowerCase().trim()
const scoredApps = []
const usageRanking = AppUsageHistoryData.getAppUsageRanking()
const usageRanking = AppUsageHistoryData.appUsageRanking || {}
for (const app of applications) {
const name = (app.name || "").toLowerCase()