From 1e8ae284815dafe3e88b2757577758c6b0256a5a Mon Sep 17 00:00:00 2001 From: AndyFTW Date: Sun, 15 Mar 2015 21:38:55 +0100 Subject: [PATCH] Removed unused usings and sorted them --- ChatSharp/ChannelCollection.cs | 5 ++--- ChatSharp/ClientSettings.cs | 7 +------ ChatSharp/Events/ChannelEventArgs.cs | 7 ++----- ChatSharp/Events/ChannelUserEventArgs.cs | 7 ++----- ChatSharp/Events/ErronousNickEventArgs.cs | 7 ++----- ChatSharp/Events/IrcNoticeEventArgs.cs | 7 ++----- ChatSharp/Events/ModeChangeEventArgs.cs | 7 ++----- ChatSharp/Events/PrivateMessageEventArgs.cs | 7 ++----- ChatSharp/Events/RawMessageEventArgs.cs | 7 ++----- ChatSharp/Events/ServerMOTDEventArgs.cs | 7 ++----- ChatSharp/Events/SocketErrorEventArgs.cs | 5 +---- ChatSharp/Events/SupportsEventArgs.cs | 7 ++----- ChatSharp/Events/WhoIsEventArgs.cs | 7 ++----- ChatSharp/Handlers/ChannelHandlers.cs | 10 ++++------ ChatSharp/Handlers/ListingHandlers.cs | 7 +------ ChatSharp/Handlers/MOTDHandlers.cs | 7 ++----- ChatSharp/Handlers/MessageHandlers.cs | 5 +---- ChatSharp/Handlers/ServerHandlers.cs | 9 +++------ ChatSharp/Handlers/UserHandlers.cs | 8 +++----- ChatSharp/IrcChannel.cs | 7 ++----- ChatSharp/IrcClient.Commands.cs | 9 +++------ ChatSharp/IrcClient.cs | 18 +++++++++--------- ChatSharp/IrcMessage.cs | 9 +++------ ChatSharp/IrcProtocolException.cs | 7 ++----- ChatSharp/IrcUser.cs | 8 +++----- ChatSharp/Mask.cs | 7 ++----- ChatSharp/MaskCollection.cs | 8 +++----- ChatSharp/PrivateMessage.cs | 7 +------ ChatSharp/Properties/AssemblyInfo.cs | 3 +-- ChatSharp/RequestManager.cs | 5 ++--- ChatSharp/ServerInfo.cs | 7 +------ ChatSharp/UserCollection.cs | 9 +++------ ChatSharp/WhoIs.cs | 7 +------ TestChatSharp/Program.cs | 11 ++++------- TestChatSharp/Properties/AssemblyInfo.cs | 3 +-- 35 files changed, 79 insertions(+), 179 deletions(-) diff --git a/ChatSharp/ChannelCollection.cs b/ChatSharp/ChannelCollection.cs index 509fce4..0d4dcf6 100644 --- a/ChatSharp/ChannelCollection.cs +++ b/ChatSharp/ChannelCollection.cs @@ -1,9 +1,8 @@ using System; using System.Collections; using System.Collections.Generic; -using System.Linq; -using System.Text; - +using System.Linq; + namespace ChatSharp { public class ChannelCollection : IEnumerable diff --git a/ChatSharp/ClientSettings.cs b/ChatSharp/ClientSettings.cs index c70382f..95364e2 100644 --- a/ChatSharp/ClientSettings.cs +++ b/ChatSharp/ClientSettings.cs @@ -1,9 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; - -namespace ChatSharp +namespace ChatSharp { public class ClientSettings { diff --git a/ChatSharp/Events/ChannelEventArgs.cs b/ChatSharp/Events/ChannelEventArgs.cs index cf8bbd9..13dc786 100644 --- a/ChatSharp/Events/ChannelEventArgs.cs +++ b/ChatSharp/Events/ChannelEventArgs.cs @@ -1,8 +1,5 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; - +using System; + namespace ChatSharp.Events { public class ChannelEventArgs : EventArgs diff --git a/ChatSharp/Events/ChannelUserEventArgs.cs b/ChatSharp/Events/ChannelUserEventArgs.cs index 192d14b..99eaa40 100644 --- a/ChatSharp/Events/ChannelUserEventArgs.cs +++ b/ChatSharp/Events/ChannelUserEventArgs.cs @@ -1,8 +1,5 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; - +using System; + namespace ChatSharp.Events { public class ChannelUserEventArgs : EventArgs diff --git a/ChatSharp/Events/ErronousNickEventArgs.cs b/ChatSharp/Events/ErronousNickEventArgs.cs index 3f31d77..e6cdf60 100644 --- a/ChatSharp/Events/ErronousNickEventArgs.cs +++ b/ChatSharp/Events/ErronousNickEventArgs.cs @@ -1,8 +1,5 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; - +using System; + namespace ChatSharp.Events { public class ErronousNickEventArgs : EventArgs diff --git a/ChatSharp/Events/IrcNoticeEventArgs.cs b/ChatSharp/Events/IrcNoticeEventArgs.cs index e9e033c..2a73fd2 100644 --- a/ChatSharp/Events/IrcNoticeEventArgs.cs +++ b/ChatSharp/Events/IrcNoticeEventArgs.cs @@ -1,8 +1,5 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; - +using System; + namespace ChatSharp.Events { public class IrcNoticeEventArgs : EventArgs diff --git a/ChatSharp/Events/ModeChangeEventArgs.cs b/ChatSharp/Events/ModeChangeEventArgs.cs index e35569c..ac70a8a 100644 --- a/ChatSharp/Events/ModeChangeEventArgs.cs +++ b/ChatSharp/Events/ModeChangeEventArgs.cs @@ -1,8 +1,5 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; - +using System; + namespace ChatSharp.Events { public class ModeChangeEventArgs : EventArgs diff --git a/ChatSharp/Events/PrivateMessageEventArgs.cs b/ChatSharp/Events/PrivateMessageEventArgs.cs index 7c0c5ee..6f9db01 100644 --- a/ChatSharp/Events/PrivateMessageEventArgs.cs +++ b/ChatSharp/Events/PrivateMessageEventArgs.cs @@ -1,8 +1,5 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; - +using System; + namespace ChatSharp.Events { public class PrivateMessageEventArgs : EventArgs diff --git a/ChatSharp/Events/RawMessageEventArgs.cs b/ChatSharp/Events/RawMessageEventArgs.cs index 3dad4ce..07b237b 100644 --- a/ChatSharp/Events/RawMessageEventArgs.cs +++ b/ChatSharp/Events/RawMessageEventArgs.cs @@ -1,8 +1,5 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; - +using System; + namespace ChatSharp.Events { public class RawMessageEventArgs : EventArgs diff --git a/ChatSharp/Events/ServerMOTDEventArgs.cs b/ChatSharp/Events/ServerMOTDEventArgs.cs index ff8e638..f9a3a8c 100644 --- a/ChatSharp/Events/ServerMOTDEventArgs.cs +++ b/ChatSharp/Events/ServerMOTDEventArgs.cs @@ -1,8 +1,5 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; - +using System; + namespace ChatSharp.Events { public class ServerMOTDEventArgs : EventArgs diff --git a/ChatSharp/Events/SocketErrorEventArgs.cs b/ChatSharp/Events/SocketErrorEventArgs.cs index 8330bb2..3177ba3 100644 --- a/ChatSharp/Events/SocketErrorEventArgs.cs +++ b/ChatSharp/Events/SocketErrorEventArgs.cs @@ -1,7 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; +using System; using System.Net.Sockets; namespace ChatSharp.Events diff --git a/ChatSharp/Events/SupportsEventArgs.cs b/ChatSharp/Events/SupportsEventArgs.cs index 3116567..cb333e1 100644 --- a/ChatSharp/Events/SupportsEventArgs.cs +++ b/ChatSharp/Events/SupportsEventArgs.cs @@ -1,8 +1,5 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; - +using System; + namespace ChatSharp.Events { public class SupportsEventArgs : EventArgs diff --git a/ChatSharp/Events/WhoIsEventArgs.cs b/ChatSharp/Events/WhoIsEventArgs.cs index 02814c2..90c803a 100644 --- a/ChatSharp/Events/WhoIsEventArgs.cs +++ b/ChatSharp/Events/WhoIsEventArgs.cs @@ -1,8 +1,5 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; - +using System; + namespace ChatSharp.Events { public class WhoIsReceivedEventArgs : EventArgs diff --git a/ChatSharp/Handlers/ChannelHandlers.cs b/ChatSharp/Handlers/ChannelHandlers.cs index bba7e92..66e06df 100644 --- a/ChatSharp/Handlers/ChannelHandlers.cs +++ b/ChatSharp/Handlers/ChannelHandlers.cs @@ -1,10 +1,8 @@ -using ChatSharp.Events; -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; +using ChatSharp.Events; +using System; +using System.Linq; +using System.Threading; using System.Threading.Tasks; -using System.Threading; namespace ChatSharp.Handlers { diff --git a/ChatSharp/Handlers/ListingHandlers.cs b/ChatSharp/Handlers/ListingHandlers.cs index 6994aa2..d977eab 100644 --- a/ChatSharp/Handlers/ListingHandlers.cs +++ b/ChatSharp/Handlers/ListingHandlers.cs @@ -1,9 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; - -namespace ChatSharp.Handlers +namespace ChatSharp.Handlers { internal static class ListingHandlers { diff --git a/ChatSharp/Handlers/MOTDHandlers.cs b/ChatSharp/Handlers/MOTDHandlers.cs index 45d6393..7cd5866 100644 --- a/ChatSharp/Handlers/MOTDHandlers.cs +++ b/ChatSharp/Handlers/MOTDHandlers.cs @@ -1,8 +1,5 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using ChatSharp.Events; +using ChatSharp.Events; +using System; namespace ChatSharp.Handlers { diff --git a/ChatSharp/Handlers/MessageHandlers.cs b/ChatSharp/Handlers/MessageHandlers.cs index b2b5ceb..35e2ddb 100644 --- a/ChatSharp/Handlers/MessageHandlers.cs +++ b/ChatSharp/Handlers/MessageHandlers.cs @@ -1,8 +1,5 @@ -using System; -using System.Collections.Generic; +using ChatSharp.Events; using System.Linq; -using System.Text; -using ChatSharp.Events; namespace ChatSharp.Handlers { diff --git a/ChatSharp/Handlers/ServerHandlers.cs b/ChatSharp/Handlers/ServerHandlers.cs index 65e377f..d2fd762 100644 --- a/ChatSharp/Handlers/ServerHandlers.cs +++ b/ChatSharp/Handlers/ServerHandlers.cs @@ -1,9 +1,6 @@ -using ChatSharp.Events; -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; - +using ChatSharp.Events; +using System.Linq; + namespace ChatSharp.Handlers { internal static class ServerHandlers diff --git a/ChatSharp/Handlers/UserHandlers.cs b/ChatSharp/Handlers/UserHandlers.cs index a3b49b8..e499156 100644 --- a/ChatSharp/Handlers/UserHandlers.cs +++ b/ChatSharp/Handlers/UserHandlers.cs @@ -1,8 +1,6 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; - +using System; +using System.Linq; + namespace ChatSharp.Handlers { public static class UserHandlers diff --git a/ChatSharp/IrcChannel.cs b/ChatSharp/IrcChannel.cs index f62afbc..7281c93 100644 --- a/ChatSharp/IrcChannel.cs +++ b/ChatSharp/IrcChannel.cs @@ -1,8 +1,5 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; - +using System.Collections.Generic; + namespace ChatSharp { public class IrcChannel diff --git a/ChatSharp/IrcClient.Commands.cs b/ChatSharp/IrcClient.Commands.cs index 145dfb7..02c668c 100644 --- a/ChatSharp/IrcClient.Commands.cs +++ b/ChatSharp/IrcClient.Commands.cs @@ -1,9 +1,6 @@ -using ChatSharp.Handlers; -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; - +using System; +using System.Linq; + namespace ChatSharp { public partial class IrcClient diff --git a/ChatSharp/IrcClient.cs b/ChatSharp/IrcClient.cs index e38733b..95100e0 100644 --- a/ChatSharp/IrcClient.cs +++ b/ChatSharp/IrcClient.cs @@ -1,13 +1,13 @@ -using System; -using System.IO; -using System.Net.Security; -using System.Text; -using System.Collections.Generic; -using System.Net.Sockets; -using ChatSharp.Events; +using ChatSharp.Events; +using ChatSharp.Handlers; +using System; +using System.Collections.Concurrent; +using System.Collections.Generic; +using System.IO; +using System.Net.Security; +using System.Net.Sockets; +using System.Text; using System.Timers; -using ChatSharp.Handlers; -using System.Collections.Concurrent; namespace ChatSharp { diff --git a/ChatSharp/IrcMessage.cs b/ChatSharp/IrcMessage.cs index b437f2b..758c319 100644 --- a/ChatSharp/IrcMessage.cs +++ b/ChatSharp/IrcMessage.cs @@ -1,9 +1,6 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Text.RegularExpressions; - +using System.Collections.Generic; +using System.Linq; + namespace ChatSharp { public class IrcMessage diff --git a/ChatSharp/IrcProtocolException.cs b/ChatSharp/IrcProtocolException.cs index 3e17f82..5c36934 100644 --- a/ChatSharp/IrcProtocolException.cs +++ b/ChatSharp/IrcProtocolException.cs @@ -1,8 +1,5 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; - +using System; + namespace ChatSharp { public class IrcProtocolException : Exception diff --git a/ChatSharp/IrcUser.cs b/ChatSharp/IrcUser.cs index e95d2d6..cecd1da 100644 --- a/ChatSharp/IrcUser.cs +++ b/ChatSharp/IrcUser.cs @@ -1,8 +1,6 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; - +using System; +using System.Linq; + namespace ChatSharp { public class IrcUser : IEquatable diff --git a/ChatSharp/Mask.cs b/ChatSharp/Mask.cs index d965bc6..d5d70e1 100644 --- a/ChatSharp/Mask.cs +++ b/ChatSharp/Mask.cs @@ -1,8 +1,5 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; - +using System; + namespace ChatSharp { public class Mask diff --git a/ChatSharp/MaskCollection.cs b/ChatSharp/MaskCollection.cs index ec1fde3..589fb89 100644 --- a/ChatSharp/MaskCollection.cs +++ b/ChatSharp/MaskCollection.cs @@ -1,9 +1,7 @@ -using System; -using System.Collections; +using System.Collections; using System.Collections.Generic; -using System.Linq; -using System.Text; - +using System.Linq; + namespace ChatSharp { public class MaskCollection : IEnumerable diff --git a/ChatSharp/PrivateMessage.cs b/ChatSharp/PrivateMessage.cs index 221a4b2..f7b52aa 100644 --- a/ChatSharp/PrivateMessage.cs +++ b/ChatSharp/PrivateMessage.cs @@ -1,9 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; - -namespace ChatSharp +namespace ChatSharp { public class PrivateMessage { diff --git a/ChatSharp/Properties/AssemblyInfo.cs b/ChatSharp/Properties/AssemblyInfo.cs index 89ef1ab..712b2e6 100644 --- a/ChatSharp/Properties/AssemblyInfo.cs +++ b/ChatSharp/Properties/AssemblyInfo.cs @@ -1,5 +1,4 @@ -using System.Reflection; -using System.Runtime.CompilerServices; +using System.Reflection; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following diff --git a/ChatSharp/RequestManager.cs b/ChatSharp/RequestManager.cs index a4ae298..8c47f4c 100644 --- a/ChatSharp/RequestManager.cs +++ b/ChatSharp/RequestManager.cs @@ -1,8 +1,7 @@ using System; using System.Collections.Generic; -using System.Linq; -using System.Text; - +using System.Linq; + namespace ChatSharp { public class RequestManager diff --git a/ChatSharp/ServerInfo.cs b/ChatSharp/ServerInfo.cs index e834ab1..27c42f7 100644 --- a/ChatSharp/ServerInfo.cs +++ b/ChatSharp/ServerInfo.cs @@ -1,9 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; - -namespace ChatSharp +namespace ChatSharp { public class ServerInfo { diff --git a/ChatSharp/UserCollection.cs b/ChatSharp/UserCollection.cs index b754b06..36b1df5 100644 --- a/ChatSharp/UserCollection.cs +++ b/ChatSharp/UserCollection.cs @@ -1,10 +1,7 @@ -using System; -using System.Collections; +using System.Collections; using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - +using System.Linq; + namespace ChatSharp { public class UserCollection : IEnumerable diff --git a/ChatSharp/WhoIs.cs b/ChatSharp/WhoIs.cs index 108b06e..3683d2a 100644 --- a/ChatSharp/WhoIs.cs +++ b/ChatSharp/WhoIs.cs @@ -1,9 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; - -namespace ChatSharp +namespace ChatSharp { public class WhoIs { diff --git a/TestChatSharp/Program.cs b/TestChatSharp/Program.cs index 9688e5f..aed691b 100644 --- a/TestChatSharp/Program.cs +++ b/TestChatSharp/Program.cs @@ -1,10 +1,7 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using ChatSharp; -using ChatSharp.Events; - +using ChatSharp; +using System; +using System.Linq; + namespace TestChatSharp { class Program diff --git a/TestChatSharp/Properties/AssemblyInfo.cs b/TestChatSharp/Properties/AssemblyInfo.cs index f604b8d..acd65c4 100644 --- a/TestChatSharp/Properties/AssemblyInfo.cs +++ b/TestChatSharp/Properties/AssemblyInfo.cs @@ -1,5 +1,4 @@ -using System.Reflection; -using System.Runtime.CompilerServices; +using System.Reflection; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following