From 513949568c2efd2f1b49520048a1655c8be12f34 Mon Sep 17 00:00:00 2001 From: ExMatics HydrogenC <33123710+HydrogenC@users.noreply.github.com> Date: Fri, 1 May 2020 14:33:51 +0800 Subject: [PATCH] KeyValuePair is unnecessary --- .../corlib/src/Collections/KeyValuePair.bf | 45 ------------------- 1 file changed, 45 deletions(-) delete mode 100644 BeefLibs/corlib/src/Collections/KeyValuePair.bf diff --git a/BeefLibs/corlib/src/Collections/KeyValuePair.bf b/BeefLibs/corlib/src/Collections/KeyValuePair.bf deleted file mode 100644 index e2c1133b..00000000 --- a/BeefLibs/corlib/src/Collections/KeyValuePair.bf +++ /dev/null @@ -1,45 +0,0 @@ -namespace System.Collections -{ - public struct KeyValuePair - { - private TKey mKey; - private TValue mValue; - - public this(TKey key, TValue value) - { - this.mKey = key; - this.mValue = value; - } - - public TKey Key - { - get { return mKey; } - } - - public TValue Value - { - get { return mValue; } - } - - public override void ToString(String strOut) - { - strOut.Append('['); - if (Key != null) - { - Key.ToString(strOut); - } - strOut.Append(", "); - if (Value != null) - { - Value.ToString(strOut); - } - strOut.Append(']'); - } - } -} - -namespace System.Collections.Generic -{ - [Obsolete("The System.Collections.Generic types have been moved into System.Collections", false)] - typealias KeyValuePair = System.Collections.KeyValuePair; -}