Skip to content

Commit 597eec9

Browse files
committed
Fix code quality
1 parent 0bc5a81 commit 597eec9

File tree

4 files changed

+3
-16
lines changed

4 files changed

+3
-16
lines changed

osu.Game.Tests/Visual/Online/TestSceneImageProxying.cs

-5
Original file line numberDiff line numberDiff line change
@@ -3,21 +3,16 @@
33

44
using System.Linq;
55
using NUnit.Framework;
6-
using osu.Framework.Allocation;
76
using osu.Framework.Graphics;
87
using osu.Framework.Graphics.Containers.Markdown;
98
using osu.Framework.Graphics.Sprites;
10-
using osu.Framework.Platform;
119
using osu.Framework.Testing;
1210
using osu.Game.Graphics.Containers.Markdown;
1311

1412
namespace osu.Game.Tests.Visual.Online
1513
{
1614
public partial class TestSceneImageProxying : OsuTestScene
1715
{
18-
[Resolved]
19-
private GameHost host { get; set; } = null!;
20-
2116
[Test]
2217
public void TestExternalImageLink()
2318
{

osu.Game/Audio/PreviewTrackManager.cs

+2-3
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
using osu.Framework.Logging;
1010
using osu.Game.Beatmaps;
1111
using osu.Game.Online;
12-
using osu.Game.Online.API;
1312

1413
namespace osu.Game.Audio
1514
{
@@ -29,9 +28,9 @@ public PreviewTrackManager(IAdjustableAudioComponent mainTrackAdjustments)
2928
}
3029

3130
[BackgroundDependencyLoader]
32-
private void load(AudioManager audioManager, IAPIProvider api)
31+
private void load(AudioManager audioManager)
3332
{
34-
trackStore = audioManager.GetTrackStore(new OsuOnlineStore(api.Endpoints.APIUrl));
33+
trackStore = audioManager.GetTrackStore(new OsuOnlineStore());
3534
}
3635

3736
/// <summary>

osu.Game/Online/OsuOnlineStore.cs

-7
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,6 @@ namespace osu.Game.Online
99
{
1010
public class OsuOnlineStore : OnlineStore
1111
{
12-
private readonly string apiEndpointUrl;
13-
14-
public OsuOnlineStore(string apiEndpointUrl)
15-
{
16-
this.apiEndpointUrl = apiEndpointUrl;
17-
}
18-
1912
protected override string GetLookupUrl(string url)
2013
{
2114
if (!Uri.TryCreate(url, UriKind.Absolute, out Uri? uri) || !uri.Host.EndsWith(@".ppy.sh", StringComparison.OrdinalIgnoreCase))

osu.Game/OsuGameBase.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ public partial class OsuGameBase : Framework.Game, ICanAcceptFiles, IBeatSyncPro
108108
public virtual EndpointConfiguration CreateEndpoints() =>
109109
UseDevelopmentServer ? new DevelopmentEndpointConfiguration() : new ProductionEndpointConfiguration();
110110

111-
protected override OnlineStore CreateOnlineStore() => new OsuOnlineStore(CreateEndpoints().APIUrl);
111+
protected override OnlineStore CreateOnlineStore() => new OsuOnlineStore();
112112

113113
public virtual Version AssemblyVersion => Assembly.GetEntryAssembly()?.GetName().Version ?? new Version();
114114

0 commit comments

Comments
 (0)