Skip to content

Commit

Permalink
Remove unused variable
Browse files Browse the repository at this point in the history
  • Loading branch information
marek-safar committed Feb 25, 2013
1 parent ee035e3 commit 10cdbcb
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions mcs/class/corlib/System/String.cs
Expand Up @@ -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)
Expand Down

0 comments on commit 10cdbcb

Please sign in to comment.