summary refs log tree commit diff
path: root/crypto/src/tls/AbstractTlsContext.cs
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@gmail.com>2022-06-21 23:10:22 +0700
committerPeter Dettman <peter.dettman@gmail.com>2022-06-21 23:10:22 +0700
commit454f5e65e84d49a34d7839343b584a21b34b7cd9 (patch)
tree18a13466d3a49a45daec6d982720409f6fd8bfd3 /crypto/src/tls/AbstractTlsContext.cs
parentRemove ApplicationSpecific classes (diff)
downloadBouncyCastle.NET-ed25519-454f5e65e84d49a34d7839343b584a21b34b7cd9.tar.xz
Cleanup old build systems
Diffstat (limited to 'crypto/src/tls/AbstractTlsContext.cs')
-rw-r--r--crypto/src/tls/AbstractTlsContext.cs11
1 files changed, 0 insertions, 11 deletions
diff --git a/crypto/src/tls/AbstractTlsContext.cs b/crypto/src/tls/AbstractTlsContext.cs
index 0317b1430..be7a67dfc 100644
--- a/crypto/src/tls/AbstractTlsContext.cs
+++ b/crypto/src/tls/AbstractTlsContext.cs
@@ -13,21 +13,10 @@ namespace Org.BouncyCastle.Tls
     {
         private static long counter = Times.NanoTime();
 
-#if NETCF_1_0
-        private static object counterLock = new object();
-        private static long NextCounterValue()
-        {
-            lock (counterLock)
-            {
-                return ++counter;
-            }
-        }
-#else
         private static long NextCounterValue()
         {
             return Interlocked.Increment(ref counter);
         }
-#endif
 
         private static TlsNonceGenerator CreateNonceGenerator(TlsCrypto crypto, int connectionEnd)
         {