mirror of
https://github.com/ppy/osu.git
synced 2025-01-19 12:22:57 +08:00
Remove updated/removed flow method mapping
This commit is contained in:
parent
c9257e9ecc
commit
fe8a5e867d
@ -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);
|
||||
|
@ -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.
|
||||
|
@ -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);
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user