1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-18 20:30:27 +08:00

Make UserAvatarNotification abstract since it has no actual usage

This commit is contained in:
Dean Herbert
2025-07-29 15:02:18 +09:00
Unverified
parent 35a7588c3d
commit aa4afa8776
2 changed files with 2 additions and 14 deletions
@@ -6,7 +6,6 @@ using System.Collections.Generic;
using System.Linq;
using System.Threading;
using NUnit.Framework;
using osu.Framework.Extensions;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
using osu.Framework.Graphics.Sprites;
@@ -65,7 +64,6 @@ namespace osu.Game.Tests.Visual.UserInterface
AddStep(@"simple #2", sendAmazingNotification);
AddStep(@"progress #1", sendUploadProgress);
AddStep(@"progress #2", sendDownloadProgress);
AddStep(@"User notification", sendUserNotification);
checkProgressingCount(2);
@@ -577,16 +575,6 @@ namespace osu.Game.Tests.Visual.UserInterface
progressingNotifications.Add(n);
}
private void sendUserNotification()
{
var user = userLookupCache.GetUserAsync(0).GetResultSafely();
if (user == null) return;
var n = new UserAvatarNotification(user, $"{user.Username} invited you to a multiplayer match!");
notificationOverlay.Post(n);
}
private void sendUploadProgress()
{
var n = new ProgressNotification
@@ -9,13 +9,13 @@ using osu.Game.Users.Drawables;
namespace osu.Game.Overlays.Notifications
{
public partial class UserAvatarNotification : SimpleNotification
public abstract partial class UserAvatarNotification : SimpleNotification
{
private readonly APIUser? user;
protected DrawableAvatar Avatar { get; private set; } = null!;
public UserAvatarNotification(APIUser? user, LocalisableString text = default)
protected UserAvatarNotification(APIUser? user, LocalisableString text = default)
{
this.user = user;