From d57196efb0a59f2ccb6b48e3a41110c3b7b08dc2 Mon Sep 17 00:00:00 2001 From: Maxim Lipnin Date: Fri, 3 Sep 2021 13:34:10 +0300 Subject: [PATCH] Remove unnecessary unsafe keyword (#58606) A small cleanup after https://github.com/dotnet/runtime/pull/56713. --- src/libraries/System.Console/src/System/ConsolePal.iOS.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libraries/System.Console/src/System/ConsolePal.iOS.cs b/src/libraries/System.Console/src/System/ConsolePal.iOS.cs index 19e2bbd7408de4..a58d4baeb42e23 100644 --- a/src/libraries/System.Console/src/System/ConsolePal.iOS.cs +++ b/src/libraries/System.Console/src/System/ConsolePal.iOS.cs @@ -22,7 +22,7 @@ public NSLogStream(Encoding encoding) : base(FileAccess.Write) public override int Read(Span buffer) => throw Error.GetReadNotSupported(); - public override unsafe void Write(ReadOnlySpan buffer) + public override void Write(ReadOnlySpan buffer) { int maxCharCount = _encoding.GetMaxCharCount(buffer.Length); char[]? pooledBuffer = null;