From f10ea529eaf2b2085c12e71fc9eeacedf2d3d7e4 Mon Sep 17 00:00:00 2001 From: "jruderman%hmc.edu" Date: Thu, 26 Apr 2007 00:24:28 +0000 Subject: [PATCH] Remove bogus assertions. Bug 344888, r+sr=tor. git-svn-id: svn://10.0.0.236/trunk@225058 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/content/svg/content/src/nsSVGAngle.cpp | 3 --- mozilla/content/svg/content/src/nsSVGLength.cpp | 1 - mozilla/content/svg/content/src/nsSVGLength2.cpp | 1 - 3 files changed, 5 deletions(-) diff --git a/mozilla/content/svg/content/src/nsSVGAngle.cpp b/mozilla/content/svg/content/src/nsSVGAngle.cpp index dddb84abf97..612596ebc07 100644 --- a/mozilla/content/svg/content/src/nsSVGAngle.cpp +++ b/mozilla/content/svg/content/src/nsSVGAngle.cpp @@ -317,9 +317,6 @@ nsSVGAngle::SetValueAsString(const nsAString & aValueAsString) if (rest!=number) { PRUint16 unitType = GetUnitTypeForString(nsCRT::strtok(rest, "\x20\x9\xD\xA", &rest)); rv = NewValueSpecifiedUnits(unitType, (float)value); - if (rv != NS_OK) { - NS_ERROR("invalid length type"); - } } else { // parse error // no number diff --git a/mozilla/content/svg/content/src/nsSVGLength.cpp b/mozilla/content/svg/content/src/nsSVGLength.cpp index fa0895ac11a..10c69645e05 100644 --- a/mozilla/content/svg/content/src/nsSVGLength.cpp +++ b/mozilla/content/svg/content/src/nsSVGLength.cpp @@ -432,7 +432,6 @@ nsSVGLength::SetValueAsString(const nsAString & aValueAsString) else { // parse error // not a valid unit type rv = NS_ERROR_FAILURE; - NS_ERROR("invalid length type"); } } else { // parse error diff --git a/mozilla/content/svg/content/src/nsSVGLength2.cpp b/mozilla/content/svg/content/src/nsSVGLength2.cpp index 8f32f154c17..f184721cbff 100644 --- a/mozilla/content/svg/content/src/nsSVGLength2.cpp +++ b/mozilla/content/svg/content/src/nsSVGLength2.cpp @@ -223,7 +223,6 @@ nsSVGLength2::SetBaseValueString(const nsAString &aValueAsString, else { // parse error // not a valid unit type rv = NS_ERROR_FAILURE; - NS_ERROR("invalid length type"); } } else { // parse error