-Removed unused utility methods

-Fixed various code warnings
This commit is contained in:
JamesNK
2012-01-17 11:22:16 +00:00
parent 2941344044
commit 61db48c01d
29 changed files with 59 additions and 1131 deletions
+2 -2
View File
@@ -658,7 +658,7 @@ namespace Newtonsoft.Json
private static bool IsZero(double value)
{
double epsilon = 2.2204460492503131e-016;
const double epsilon = 2.2204460492503131e-016;
return Math.Abs(value) < 10.0 * epsilon;
}
@@ -731,7 +731,7 @@ namespace Newtonsoft.Json
bool IJsonLineInfo.HasLineInfo()
{
IJsonLineInfo lineInfo = _reader as IJsonLineInfo;
return (lineInfo != null) ? lineInfo.HasLineInfo() : false;
return lineInfo != null && lineInfo.HasLineInfo();
}
int IJsonLineInfo.LineNumber