From bc6b938c651265f4fee8a33e896a9e35f2c81370 Mon Sep 17 00:00:00 2001 From: Markus Cozowicz Date: Fri, 22 Jul 2016 13:41:12 -0400 Subject: [PATCH] removed dead code --- Src/Newtonsoft.Json/JsonTextReader.cs | 8 -------- 1 file changed, 8 deletions(-) diff --git a/Src/Newtonsoft.Json/JsonTextReader.cs b/Src/Newtonsoft.Json/JsonTextReader.cs index ddc931c6..6d806942 100644 --- a/Src/Newtonsoft.Json/JsonTextReader.cs +++ b/Src/Newtonsoft.Json/JsonTextReader.cs @@ -1979,10 +1979,6 @@ namespace Newtonsoft.Json { 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 { 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; } - 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 { throw JsonReaderException.Create(this, "Input string '{0}' is not a valid number.".FormatWith(CultureInfo.InvariantCulture, number));