Skip to content

Commit ffa5112

Browse files
committed
Remove unused LegendaryLibraryManager#updateAllGames
1 parent c6b5850 commit ffa5112

File tree

1 file changed

+0
-21
lines changed

1 file changed

+0
-21
lines changed

src/backend/storeManagers/legendary/library.ts

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ import {
4040
import { callRunner } from '../../launcher'
4141
import { dirname, join } from 'path'
4242
import { isOnline } from 'backend/online_monitor'
43-
import { update } from './games'
4443
import { LegendaryCommand } from './commands'
4544
import { LegendaryAppName, LegendaryPlatform } from './commands/base'
4645
import { Path } from 'backend/schemas'
@@ -386,26 +385,6 @@ export async function listUpdateableGames(): Promise<string[]> {
386385
return updateableGames
387386
}
388387

389-
/**
390-
* Update all updateable games.
391-
* Uses `listUpdateableGames` along with `LegendaryGame.update`
392-
*
393-
* @returns Array of results of `Game.update`.
394-
*/
395-
export async function updateAllGames() {
396-
return (
397-
await Promise.allSettled(
398-
(await listUpdateableGames()).map(async (appName) => update(appName))
399-
)
400-
).map((res) => {
401-
if (res.status === 'fulfilled') {
402-
return res.value
403-
} else {
404-
return null
405-
}
406-
})
407-
}
408-
409388
/**
410389
* Change the install path for a given game.
411390
*

0 commit comments

Comments
 (0)