From aace818f43e52b058a304ebba85c8288027bbee6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20Mail=C3=A4nder?= Date: Fri, 9 May 2014 08:44:37 +0200 Subject: [PATCH] remove unused OpenRA.Server extensions --- OpenRA.Game/Server/Exts.cs | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/OpenRA.Game/Server/Exts.cs b/OpenRA.Game/Server/Exts.cs index 5bce5b6943..7ceb00e401 100755 --- a/OpenRA.Game/Server/Exts.cs +++ b/OpenRA.Game/Server/Exts.cs @@ -16,21 +16,9 @@ namespace OpenRA.Server { static class Exts { - public static void Write( this Stream s, byte[] data ) + public static IEnumerable Except(this IEnumerable ts, T t) { - s.Write( data, 0, data.Length ); - } - - public static byte[] Read( this Stream s, int len ) - { - var data = new byte[ len ]; - s.Read( data, 0, len ); - return data; - } - - public static IEnumerable Except( this IEnumerable ts, T t ) - { - return ts.Except( new[] { t } ); + return ts.Except(new[] { t }); } } }