Drop BeatmapSet, only BeatmapSetInfo is necessary

This commit is contained in:
Drew DeVault
2016-10-18 15:48:24 -04:00
parent 768dd38fa0
commit 7bdf1fe1bf
3 changed files with 5 additions and 20 deletions

View File

@ -82,6 +82,11 @@ namespace osu.Game.Database
return ArchiveReader.GetReader(storage, beatmapSet.Path);
}
public BeatmapSetInfo GetBeatmapSet(int id)
{
return Query<BeatmapSetInfo>().Where(s => s.BeatmapSetID == id).FirstOrDefault();
}
public Beatmap GetBeatmap(BeatmapInfo beatmapInfo)
{
var beatmapSet = Query<BeatmapSetInfo>()