Skip to content

Commit 8c932fb

Browse files
Remove old features [Part 1] (#1117)
Remove obsolete feature switches (now that we've remove support for legacy target frameworks) and remove corresponding conditional code.
1 parent cf85100 commit 8c932fb

File tree

79 files changed

+60
-1353
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

79 files changed

+60
-1353
lines changed

src/Renci.SshNet.Tests/Classes/Channels/ChannelDirectTcpipTest_Dispose_SessionIsConnectedAndChannelIsOpen.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,6 @@
55
using System.Threading;
66
using Microsoft.VisualStudio.TestTools.UnitTesting;
77
using Moq;
8-
#if !FEATURE_SOCKET_DISPOSE
9-
using Renci.SshNet.Common;
10-
#endif // !FEATURE_SOCKET_DISPOSE
118
using Renci.SshNet.Channels;
129
using Renci.SshNet.Messages.Connection;
1310
using Renci.SshNet.Tests.Common;

src/Renci.SshNet.Tests/Classes/Common/CountdownEventTest.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@
22
using System.Diagnostics;
33
using System.Threading;
44
using Microsoft.VisualStudio.TestTools.UnitTesting;
5-
#if !FEATURE_THREAD_COUNTDOWNEVENT
6-
using CountdownEvent = Renci.SshNet.Common.CountdownEvent;
7-
#endif
85

96
namespace Renci.SshNet.Tests.Classes.Common
107
{

src/Renci.SshNet.Tests/Classes/Common/CountdownEventTest_Dispose_NotSet.cs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
using System;
22
using Microsoft.VisualStudio.TestTools.UnitTesting;
3-
#if !FEATURE_THREAD_COUNTDOWNEVENT
4-
using CountdownEvent = Renci.SshNet.Common.CountdownEvent;
5-
#else
63
using System.Threading;
7-
#endif
84

95
namespace Renci.SshNet.Tests.Classes.Common
106
{

src/Renci.SshNet.Tests/Classes/Common/CountdownEventTest_Dispose_Set.cs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
using System;
22
using Microsoft.VisualStudio.TestTools.UnitTesting;
3-
#if !FEATURE_THREAD_COUNTDOWNEVENT
4-
using CountdownEvent = Renci.SshNet.Common.CountdownEvent;
5-
#else
63
using System.Threading;
7-
#endif
84

95
namespace Renci.SshNet.Tests.Classes.Common
106
{

src/Renci.SshNet.Tests/Classes/Sftp/SftpFileStreamAsyncTestBase.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
#if FEATURE_TAP
2-
using System;
1+
using System;
32
using System.Threading.Tasks;
43
using Microsoft.VisualStudio.TestTools.UnitTesting;
54
using Moq;
@@ -66,4 +65,3 @@ protected byte[] GenerateRandom(uint length, Random random)
6665
}
6766
}
6867
}
69-
#endif

src/Renci.SshNet.Tests/Classes/Sftp/SftpFileStreamTest_OpenAsync_FileAccessInvalid.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
#if FEATURE_TAP
2-
using System;
1+
using System;
32
using System.IO;
43
using System.Threading.Tasks;
54
using Microsoft.VisualStudio.TestTools.UnitTesting;
@@ -54,4 +53,3 @@ public void CtorShouldHaveThrownArgumentException()
5453
}
5554
}
5655
}
57-
#endif

src/Renci.SshNet.Tests/Classes/Sftp/SftpFileStreamTest_OpenAsync_FileModeAppend_FileAccessRead.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
#if FEATURE_TAP
2-
using System;
1+
using System;
32
using System.IO;
43
using System.Threading.Tasks;
54
using Microsoft.VisualStudio.TestTools.UnitTesting;
@@ -55,4 +54,3 @@ public void CtorShouldHaveThrownArgumentException()
5554
}
5655
}
5756
}
58-
#endif

src/Renci.SshNet.Tests/Classes/Sftp/SftpFileStreamTest_OpenAsync_FileModeAppend_FileAccessReadWrite.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
#if FEATURE_TAP
2-
using System;
1+
using System;
32
using System.IO;
43
using System.Threading.Tasks;
54
using Microsoft.VisualStudio.TestTools.UnitTesting;
@@ -55,4 +54,3 @@ public void CtorShouldHaveThrownArgumentException()
5554
}
5655
}
5756
}
58-
#endif

src/Renci.SshNet.Tests/Classes/Sftp/SftpFileStreamTest_OpenAsync_FileModeAppend_FileAccessWrite.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
#if FEATURE_TAP
2-
using System;
1+
using System;
32
using System.IO;
43
using System.Threading;
54
using System.Threading.Tasks;
@@ -152,4 +151,3 @@ public void RequestFStatOnSftpSessionShouldBeInvokedOnce()
152151
}
153152
}
154153
}
155-
#endif

src/Renci.SshNet.Tests/Classes/Sftp/SftpFileStreamTest_OpenAsync_FileModeCreateNew_FileAccessRead.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
#if FEATURE_TAP
2-
using System;
1+
using System;
32
using System.IO;
43
using System.Threading.Tasks;
54
using Microsoft.VisualStudio.TestTools.UnitTesting;
@@ -55,4 +54,3 @@ public void CtorShouldHaveThrownArgumentException()
5554
}
5655
}
5756
}
58-
#endif

0 commit comments

Comments
 (0)