mirror of
https://github.com/osukey/osukey.git
synced 2025-07-01 08:20:00 +09:00
Remove now unreachable code paths.
This commit is contained in:
@ -99,12 +99,6 @@ namespace osu.Game.Collections
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public Task ImportFromStableAsync(StableStorage stableStorage)
|
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))
|
if (!stableStorage.Exists(database_name))
|
||||||
{
|
{
|
||||||
// This handles situations like when the user does not have a collections.db file
|
// This handles situations like when the user does not have a collections.db file
|
||||||
|
@ -689,12 +689,6 @@ namespace osu.Game.Database
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public Task ImportFromStableAsync(StableStorage stableStorage)
|
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);
|
var storage = PrepareStableStorage(stableStorage);
|
||||||
|
|
||||||
if (!storage.ExistsDirectory(ImportFromStablePath))
|
if (!storage.ExistsDirectory(ImportFromStablePath))
|
||||||
|
Reference in New Issue
Block a user