Remove PreUpdate, update hash in Save()

This commit is contained in:
smoogipoo
2020-06-08 14:40:17 +09:00
parent dfed27bd46
commit 443977aa8d
2 changed files with 8 additions and 25 deletions

View File

@ -429,21 +429,10 @@ namespace osu.Game.Database
using (ContextFactory.GetForWrite())
{
item.Hash = computeHash(item);
PreUpdate(item);
ModelStore.Update(item);
}
}
/// <summary>
/// Perform any final actions before the update to database executes.
/// </summary>
/// <param name="item">The <typeparamref name="TModel"/> that is being updated.</param>
protected virtual void PreUpdate(TModel item)
{
}
/// <summary>
/// Delete an item from the manager.
/// Is a no-op for already deleted items.