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