removed dead code
This commit is contained in:
@@ -1979,10 +1979,6 @@ namespace Newtonsoft.Json
|
|||||||
{
|
{
|
||||||
numberValue = value;
|
numberValue = value;
|
||||||
}
|
}
|
||||||
else if (parseResult == ParseResult.Overflow)
|
|
||||||
{
|
|
||||||
throw JsonReaderException.Create(this, "JSON integer {0} is too large or small for an Double.".FormatWith(CultureInfo.InvariantCulture, _stringReference.ToString()));
|
|
||||||
}
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
throw JsonReaderException.Create(this, "Input string '{0}' is not a valid double.".FormatWith(CultureInfo.InvariantCulture, _stringReference.ToString()));
|
throw JsonReaderException.Create(this, "Input string '{0}' is not a valid double.".FormatWith(CultureInfo.InvariantCulture, _stringReference.ToString()));
|
||||||
@@ -2063,10 +2059,6 @@ namespace Newtonsoft.Json
|
|||||||
{
|
{
|
||||||
numberValue = d;
|
numberValue = d;
|
||||||
}
|
}
|
||||||
else if (parseResult == ParseResult.Overflow)
|
|
||||||
{
|
|
||||||
throw JsonReaderException.Create(this, "JSON integer {0} is too large or small for an Double.".FormatWith(CultureInfo.InvariantCulture, _stringReference.ToString()));
|
|
||||||
}
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
throw JsonReaderException.Create(this, "Input string '{0}' is not a valid number.".FormatWith(CultureInfo.InvariantCulture, number));
|
throw JsonReaderException.Create(this, "Input string '{0}' is not a valid number.".FormatWith(CultureInfo.InvariantCulture, number));
|
||||||
|
|||||||
Reference in New Issue
Block a user