diff options
author | Peter Dettman <peter.dettman@bouncycastle.org> | 2022-06-29 14:47:32 +0700 |
---|---|---|
committer | Peter Dettman <peter.dettman@bouncycastle.org> | 2022-06-29 14:47:32 +0700 |
commit | a395a34a769d3c7e6616129f4832b7014dbbfe98 (patch) | |
tree | 76a4749c2f548afff826c6758de3c8ce0b6fd646 /crypto/src/util | |
parent | Generics migration complete (diff) | |
download | BouncyCastle.NET-ed25519-a395a34a769d3c7e6616129f4832b7014dbbfe98.tar.xz |
Cleanup NewLine handling
Diffstat (limited to 'crypto/src/util')
-rw-r--r-- | crypto/src/util/Platform.cs | 2 | ||||
-rw-r--r-- | crypto/src/util/io/pem/PemWriter.cs | 2 |
2 files changed, 1 insertions, 3 deletions
diff --git a/crypto/src/util/Platform.cs b/crypto/src/util/Platform.cs index b25d76dae..7e79c64e1 100644 --- a/crypto/src/util/Platform.cs +++ b/crypto/src/util/Platform.cs @@ -31,8 +31,6 @@ namespace Org.BouncyCastle.Utilities return null == obj ? 0 : obj.GetHashCode(); } - internal static readonly string NewLine = Environment.NewLine; - internal static void Dispose(IDisposable d) { d.Dispose(); diff --git a/crypto/src/util/io/pem/PemWriter.cs b/crypto/src/util/io/pem/PemWriter.cs index 87968a727..fbb8b0f2d 100644 --- a/crypto/src/util/io/pem/PemWriter.cs +++ b/crypto/src/util/io/pem/PemWriter.cs @@ -27,7 +27,7 @@ namespace Org.BouncyCastle.Utilities.IO.Pem throw new ArgumentNullException("writer"); this.writer = writer; - this.nlLength = Platform.NewLine.Length; + this.nlLength = Environment.NewLine.Length; } public TextWriter Writer |