From fe8a5e867d2cbaa19e95516c61084508ff57af2c Mon Sep 17 00:00:00 2001
From: Dean Herbert <pe@ppy.sh>
Date: Fri, 17 Dec 2021 19:03:02 +0900
Subject: [PATCH] Remove updated/removed flow method mapping

---
 osu.Game/Beatmaps/BeatmapManager.cs         |  4 ----
 osu.Game/Database/IModelManager.cs          | 11 -----------
 osu.Game/Scoring/ScoreManager.cs            | 12 ------------
 osu.Game/Stores/RealmArchiveModelManager.cs | 16 ----------------
 4 files changed, 43 deletions(-)

diff --git a/osu.Game/Beatmaps/BeatmapManager.cs b/osu.Game/Beatmaps/BeatmapManager.cs
index 462980448a..d9484a2880 100644
--- a/osu.Game/Beatmaps/BeatmapManager.cs
+++ b/osu.Game/Beatmaps/BeatmapManager.cs
@@ -232,10 +232,6 @@ namespace osu.Game.Beatmaps
             return beatmapModelManager.IsAvailableLocally(model);
         }
 
-        public event Action<BeatmapSetInfo>? ItemUpdated;
-
-        public event Action<BeatmapSetInfo>? ItemRemoved;
-
         public void Update(BeatmapSetInfo item)
         {
             beatmapModelManager.Update(item);
diff --git a/osu.Game/Database/IModelManager.cs b/osu.Game/Database/IModelManager.cs
index 779d0522f7..e7218b621c 100644
--- a/osu.Game/Database/IModelManager.cs
+++ b/osu.Game/Database/IModelManager.cs
@@ -1,7 +1,6 @@
 // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
 // See the LICENCE file in the repository root for full licence text.
 
-using System;
 using System.Collections.Generic;
 
 namespace osu.Game.Database
@@ -13,16 +12,6 @@ namespace osu.Game.Database
     public interface IModelManager<TModel>
         where TModel : class
     {
-        /// <summary>
-        /// Fired when an item is updated.
-        /// </summary>
-        event Action<TModel> ItemUpdated;
-
-        /// <summary>
-        /// Fired when an item is removed.
-        /// </summary>
-        event Action<TModel> ItemRemoved;
-
         /// <summary>
         /// Perform an update of the specified item.
         /// TODO: Support file additions/removals.
diff --git a/osu.Game/Scoring/ScoreManager.cs b/osu.Game/Scoring/ScoreManager.cs
index c2a9675474..159c3c2da0 100644
--- a/osu.Game/Scoring/ScoreManager.cs
+++ b/osu.Game/Scoring/ScoreManager.cs
@@ -251,18 +251,6 @@ namespace osu.Game.Scoring
 
         #region Implementation of IModelManager<ScoreInfo>
 
-        public event Action<ScoreInfo> ItemUpdated
-        {
-            add => scoreModelManager.ItemUpdated += value;
-            remove => scoreModelManager.ItemUpdated -= value;
-        }
-
-        public event Action<ScoreInfo> ItemRemoved
-        {
-            add => scoreModelManager.ItemRemoved += value;
-            remove => scoreModelManager.ItemRemoved -= value;
-        }
-
         public void Update(ScoreInfo item)
         {
             scoreModelManager.Update(item);
diff --git a/osu.Game/Stores/RealmArchiveModelManager.cs b/osu.Game/Stores/RealmArchiveModelManager.cs
index d6bb01cedf..8698799b4a 100644
--- a/osu.Game/Stores/RealmArchiveModelManager.cs
+++ b/osu.Game/Stores/RealmArchiveModelManager.cs
@@ -24,22 +24,6 @@ namespace osu.Game.Stores
     public abstract class RealmArchiveModelManager<TModel> : RealmArchiveModelImporter<TModel>, IModelManager<TModel>, IModelFileManager<TModel, RealmNamedFileUsage>
         where TModel : RealmObject, IHasRealmFiles, IHasGuidPrimaryKey, ISoftDelete
     {
-        public event Action<TModel>? ItemUpdated
-        {
-            // This may be brought back for beatmaps to ease integration.
-            // The eventual goal would be not requiring this and using realm subscriptions in its place.
-            add => throw new NotImplementedException();
-            remove => throw new NotImplementedException();
-        }
-
-        public event Action<TModel>? ItemRemoved
-        {
-            // This may be brought back for beatmaps to ease integration.
-            // The eventual goal would be not requiring this and using realm subscriptions in its place.
-            add => throw new NotImplementedException();
-            remove => throw new NotImplementedException();
-        }
-
         private readonly RealmFileStore realmFileStore;
 
         protected RealmArchiveModelManager(Storage storage, RealmContextFactory contextFactory)