Skip to content

Commit

Permalink
trim
Browse files Browse the repository at this point in the history
  • Loading branch information
chsbuffer committed Jan 7, 2021
1 parent 6e499c3 commit b6afeab
Show file tree
Hide file tree
Showing 17 changed files with 3 additions and 28 deletions.
1 change: 0 additions & 1 deletion Netch/Controllers/NTTController.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System;
using System.Diagnostics;
using System.IO;
using System.Linq;
using Netch.Utils;
Expand Down
1 change: 0 additions & 1 deletion Netch/Controllers/PrivoxyController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
using System.Text;
using Netch.Models;
using Netch.Servers.Socks5;
using Netch.Utils.HttpProxyHandler;

namespace Netch.Controllers
{
Expand Down
1 change: 0 additions & 1 deletion Netch/Controllers/UpdateChecker.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using Netch.Models.GitHubRelease;
using Netch.Utils;
Expand Down
6 changes: 0 additions & 6 deletions Netch/Forms/MainForm.MenuStrip.cs
Original file line number Diff line number Diff line change
@@ -1,18 +1,12 @@
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Net;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using Netch.Controllers;
using Netch.Forms.Mode;
using Netch.Models;
using Netch.Properties;
using Netch.Utils;
using Netch.Utils.HttpProxyHandler;
using Newtonsoft.Json;

namespace Netch.Forms
{
Expand Down
2 changes: 0 additions & 2 deletions Netch/Forms/MainForm.Status.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using Netch.Controllers;
using Netch.Models;
using Netch.Servers.Socks5;
using Netch.Utils;

namespace Netch.Forms
Expand Down
1 change: 0 additions & 1 deletion Netch/Forms/SettingForm.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
using Netch.Utils;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.IO;
using System.Linq;
Expand Down
1 change: 0 additions & 1 deletion Netch/Forms/SubscribeForm.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System;
using System.ComponentModel;
using System.Linq;
using System.Windows.Forms;
using Netch.Models;
Expand Down
4 changes: 1 addition & 3 deletions Netch/Models/Setting.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Collections.Generic;

namespace Netch.Models
{
Expand Down
1 change: 0 additions & 1 deletion Netch/Servers/ShadowsocksR/SSRController.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
using System.Text;
using Netch.Controllers;
using Netch.Models;
using Netch.Utils;

namespace Netch.Servers.ShadowsocksR
{
Expand Down
1 change: 0 additions & 1 deletion Netch/Servers/Trojan/TrojanController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
using Netch.Controllers;
using Netch.Models;
using Netch.Servers.Trojan.Models;
using Netch.Utils;
using Newtonsoft.Json;

namespace Netch.Servers.Trojan
Expand Down
1 change: 0 additions & 1 deletion Netch/Servers/VLESS/VLESS.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System.Collections.Generic;
using Netch.Models;
using Netch.Servers.VMess;

namespace Netch.Servers.VLESS
Expand Down
1 change: 0 additions & 1 deletion Netch/Servers/VMess/VMess.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
using System;
using System.Collections.Generic;
using Netch.Models;

Expand Down
5 changes: 1 addition & 4 deletions Netch/Utils/Bandwidth.cs
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@
using System;
using System.Collections.Generic;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.Diagnostics.Tracing.Parsers;
using Microsoft.Diagnostics.Tracing.Session;
using Netch.Controllers;
using Netch.Forms;
using Netch.Models;
using Netch.Servers.Shadowsocks;
using Netch.Servers.Socks5;

namespace Netch.Utils
{
Expand Down
1 change: 0 additions & 1 deletion Netch/Utils/HttpProxyHandler/PACServerHandle.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
using System;
using System.Collections;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Net;
using System.Text;
Expand Down
1 change: 0 additions & 1 deletion Netch/Utils/ICSHelper.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System;
using System.Linq;
using System.Management;
using Netch.Controllers;
using Netch.Models.WinFW;
Expand Down
2 changes: 1 addition & 1 deletion Netch/Utils/ServerHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public static class ServerHelper

static ServerHelper()
{
var serversUtilsTypes = Assembly.GetExecutingAssembly().GetExportedTypes().Where(type => type.GetInterfaces().Any(t => t == typeof(IServerUtil)));
var serversUtilsTypes = Assembly.GetExecutingAssembly().GetExportedTypes().Where(type => type.GetInterfaces().Contains(typeof(IServerUtil)));
ServerUtils = serversUtilsTypes.Select(t => (IServerUtil) Activator.CreateInstance(t)).OrderBy(util => util.Priority);
}

Expand Down
1 change: 0 additions & 1 deletion Netch/Utils/ShareLink.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
using System.Text;
using Netch.Servers.Shadowsocks;
using Netch.Servers.Shadowsocks.Models;
using Netch.Servers.VMess;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using Server = Netch.Models.Server;
Expand Down

0 comments on commit b6afeab

Please sign in to comment.