projects
/
mono.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ee035e3
)
Remove unused variable
author
Marek Safar
<marek.safar@gmail.com>
Mon, 25 Feb 2013 13:19:21 +0000
(14:19 +0100)
committer
Marek Safar
<marek.safar@gmail.com>
Mon, 25 Feb 2013 18:10:08 +0000
(19:10 +0100)
mcs/class/corlib/System/String.cs
patch
|
blob
|
history
diff --git
a/mcs/class/corlib/System/String.cs
b/mcs/class/corlib/System/String.cs
index 01346dc27abd31eac7f1f2a790587a51c4e56523..3d22083745f2d32377720083faf30e5522769c8d 100644
(file)
--- a/
mcs/class/corlib/System/String.cs
+++ b/
mcs/class/corlib/System/String.cs
@@
-2789,9
+2789,7
@@
namespace System
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)