瀏覽代碼

Remove nullOnError argument for RequestFStat and RequestLStat as it was never used.

Gert Driesen 11 年之前
父節點
當前提交
57496a4f3f
共有 1 個文件被更改,包括 2 次插入4 次删除
  1. 2 4
      Renci.SshClient/Renci.SshNet/Sftp/SftpSession.cs

+ 2 - 4
Renci.SshClient/Renci.SshNet/Sftp/SftpSession.cs

@@ -399,11 +399,10 @@ namespace Renci.SshNet.Sftp
         /// Performs SSH_FXP_LSTAT request.
         /// </summary>
         /// <param name="path">The path.</param>
-        /// <param name="nullOnError">if set to <c>true</c> returns null instead of throwing an exception.</param>
         /// <returns>
         /// File attributes
         /// </returns>
-        internal SftpFileAttributes RequestLStat(string path, bool nullOnError = false)
+        internal SftpFileAttributes RequestLStat(string path)
         {
             SshException exception = null;
 
@@ -439,11 +438,10 @@ namespace Renci.SshNet.Sftp
         /// Performs SSH_FXP_FSTAT request.
         /// </summary>
         /// <param name="handle">The handle.</param>
-        /// <param name="nullOnError">if set to <c>true</c> returns null instead of throwing an exception.</param>
         /// <returns>
         /// File attributes
         /// </returns>
-        internal SftpFileAttributes RequestFStat(byte[] handle, bool nullOnError = false)
+        internal SftpFileAttributes RequestFStat(byte[] handle)
         {
             SshException exception = null;
             SftpFileAttributes attributes = null;