1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-14 23:22:55 +08:00

Remove chart references for now

This commit is contained in:
Dean Herbert 2019-05-13 16:27:54 +09:00
parent 219c590b8a
commit 37a8d9eb80
3 changed files with 0 additions and 62 deletions

View File

@ -1,25 +0,0 @@
// 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 osu.Game.Online.API.Requests.Responses;
namespace osu.Game.Online.API.Requests
{
public class GetChangelogChartRequest : APIRequest<APIChangelogChart>
{
private readonly string updateStream;
public GetChangelogChartRequest()
{
updateStream = null;
}
public GetChangelogChartRequest(string updateStreamName)
{
updateStream = updateStreamName;
}
protected override string Target => $@"changelog/{(!string.IsNullOrEmpty(updateStream) ?
updateStream + "/" : "")}chart-config";
}
}

View File

@ -1,33 +0,0 @@
// 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 Newtonsoft.Json;
using System;
using System.Collections.Generic;
namespace osu.Game.Online.API.Requests.Responses
{
public class APIChangelogChart
{
[JsonProperty("build_history")]
public List<BuildHistory> BuildHistory { get; set; }
[JsonProperty("order")]
public List<string> Order { get; set; }
[JsonProperty("stream_name")]
public string StreamName { get; set; }
}
public class BuildHistory
{
[JsonProperty("created_at")]
public DateTimeOffset CreatedAt { get; set; }
[JsonProperty("user_count")]
public long UserCount { get; set; }
[JsonProperty("label")]
public string Label { get; set; }
}
}

View File

@ -28,7 +28,6 @@ namespace osu.Game.Overlays
private readonly ChangelogBadges badges;
//private readonly ChangelogChart chart;
private readonly ChangelogContent listing;
private readonly ChangelogContent content;
@ -88,7 +87,6 @@ namespace osu.Game.Overlays
{
header = new ChangelogHeader(),
badges = new ChangelogBadges(),
//chart = new ChangelogChart(),
listing = new ChangelogContent(),
content = new ChangelogContent()
},
@ -183,7 +181,6 @@ namespace osu.Game.Overlays
content.Hide();
listing.Show();
badges.SelectNone();
//chart.ShowAllUpdateStreams();
listing.Show();
scroll.ScrollTo(savedScrollPosition);
}
@ -208,7 +205,6 @@ namespace osu.Game.Overlays
if (updateBadges)
badges.SelectUpdateStream(build.UpdateStream.Name);
//chart.ShowUpdateStream(build.UpdateStream.Name);
req.Success += apiChangelog =>
{
listing.Hide();