Преглед на файлове

Use static methods where possible.

drieseng преди 9 години
родител
ревизия
f3f0239162
променени са 1 файла, в които са добавени 4 реда и са изтрити 4 реда
  1. 4 4
      src/Renci.SshNet/ScpClient.cs

+ 4 - 4
src/Renci.SshNet/ScpClient.cs

@@ -336,7 +336,7 @@ namespace Renci.SshNet
         /// Checks the return code.
         /// </summary>
         /// <param name="input">The output stream.</param>
-        private void CheckReturnCode(Stream input)
+        private static void CheckReturnCode(Stream input)
         {
             var b = ReadByte(input);
 
@@ -348,17 +348,17 @@ namespace Renci.SshNet
             }
         }
 
-        private void SendData(IChannel channel, string command)
+        private static void SendData(IChannel channel, string command)
         {
             channel.SendData(SshData.Utf8.GetBytes(command));
         }
 
-        private void SendData(IChannel channel, byte[] buffer, int length)
+        private static void SendData(IChannel channel, byte[] buffer, int length)
         {
             channel.SendData(buffer, 0, length);
         }
 
-        private void SendData(IChannel channel, byte[] buffer)
+        private static void SendData(IChannel channel, byte[] buffer)
         {
             channel.SendData(buffer);
         }