Skip to content

Commit d55fa92

Browse files
committed
clean code
1 parent 79a4296 commit d55fa92

4 files changed

Lines changed: 1 addition & 8 deletions

File tree

BeatmapSuggest/BeatmapSuggestPlugin.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,6 @@ private void OnInitCommand(PluginEvents.InitCommandEvent e)
6868

6969
private void ShowHelp()
7070
{
71-
7271
}
7372

7473
private bool OnCommand(Arguments args)
@@ -158,7 +157,6 @@ private async void GetCookiesFromLogin(string account,string password)
158157
stream.Write(param_byte, 0, param_byte.Length);
159158
stream.Close();
160159

161-
162160
HttpWebResponse response = (HttpWebResponse)await request.GetResponseAsync();
163161

164162
var cookie_collection = cookie_container.GetCookies(new Uri("http://osu.ppy.sh"));
@@ -173,7 +171,6 @@ private async void GetCookiesFromLogin(string account,string password)
173171
OsuCookies = sb.ToString();
174172
if (osu_filter.Scheduler!=null)
175173
osu_filter.Scheduler.osu_cookies = OsuCookies;
176-
177174
}
178175

179176
private void InitPlugin()

DefaultPlugin/DefaultPlugin.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,10 @@
66
using DefaultPlugin.Commands;
77
using System;
88
using Sync.Tools;
9-
using System.Threading.Tasks;
109
using Sync.Source;
1110
using Sync.Client;
1211
using DefaultPlugin.Clients;
1312
using static Sync.Plugins.PluginEvents;
14-
using Sync.MessageFilter;
1513

1614
namespace DefaultPlugin
1715
{

DefaultPlugin/Sources/Twitch/Twitch.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ public class Twitch : SendableSource, IConfigurable
3636

3737
public Twitch() : base(SOURCE_NAME, SOURCE_AUTHOR)
3838
{
39-
4039
}
4140

4241
const string DEFAULT_CLIENT_ID = "esmhw2lcvrgtqw545ourqjwlg7twee";
@@ -52,7 +51,6 @@ public Twitch() : base(SOURCE_NAME, SOURCE_AUTHOR)
5251

5352
public void LoadConfig()
5453
{
55-
5654
}
5755

5856
public void SaveConfig()

DefaultPlugin/Sources/Twitch/TwitchAuthenticationDialog.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ private void textBox1_TextChanged(object sender, EventArgs e)
3535
private void TwitchAuthenticationDialog_Load(object sender, EventArgs e)
3636
{
3737
var oauth = bindTwitchSource?.SOAuth?.ToString()??string.Empty;
38-
textBox1.Text = oauth.StartsWith("oauth:") ? oauth.Substring(6) : oauth ;
38+
textBox1.Text = oauth.StartsWith("oauth:") ? oauth.Substring(6) : oauth;
3939

4040
checkBox1.Checked = !bindTwitchSource.IsUsingDefaultChannelID;
4141
}

0 commit comments

Comments
 (0)