From 10cdbcbb43d1e4b5182deac3faa31d8ae80401ec Mon Sep 17 00:00:00 2001 From: Marek Safar Date: Mon, 25 Feb 2013 14:19:21 +0100 Subject: [PATCH] Remove unused variable --- mcs/class/corlib/System/String.cs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/mcs/class/corlib/System/String.cs b/mcs/class/corlib/System/String.cs index 01346dc27abd3..3d22083745f2d 100644 --- a/mcs/class/corlib/System/String.cs +++ b/mcs/class/corlib/System/String.cs @@ -2789,9 +2789,7 @@ private unsafe String CreateString (sbyte* value, int startIndex, int length, En if (value + startIndex < value) throw new ArgumentOutOfRangeException ("startIndex", "Value, startIndex and length do not refer to a valid string."); - bool isDefaultEncoding; - - if (isDefaultEncoding = (enc == null)) { + if (enc == null) { if (value == null) throw new ArgumentNullException ("value"); if (length == 0)