1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-13 15:52:54 +08:00

Remove now unreachable code paths.

This commit is contained in:
Lucas A 2021-05-14 17:24:36 +02:00
parent bec06cfac7
commit 41fafdf643
2 changed files with 0 additions and 12 deletions

View File

@ -99,12 +99,6 @@ namespace osu.Game.Collections
/// </summary>
public Task ImportFromStableAsync(StableStorage stableStorage)
{
if (stableStorage == null)
{
Logger.Log("No osu!stable installation available!", LoggingTarget.Information, LogLevel.Error);
return Task.CompletedTask;
}
if (!stableStorage.Exists(database_name))
{
// This handles situations like when the user does not have a collections.db file

View File

@ -689,12 +689,6 @@ namespace osu.Game.Database
/// </summary>
public Task ImportFromStableAsync(StableStorage stableStorage)
{
if (stableStorage == null)
{
Logger.Log("No osu!stable installation available!", LoggingTarget.Information, LogLevel.Error);
return Task.CompletedTask;
}
var storage = PrepareStableStorage(stableStorage);
if (!storage.ExistsDirectory(ImportFromStablePath))