diff --git a/content/svg/content/src/SVGFragmentIdentifier.cpp b/content/svg/content/src/SVGFragmentIdentifier.cpp index d21dc9d77d8..3a320a030cc 100644 --- a/content/svg/content/src/SVGFragmentIdentifier.cpp +++ b/content/svg/content/src/SVGFragmentIdentifier.cpp @@ -11,12 +11,6 @@ using namespace mozilla; -static nsSVGEnumMapping sZoomAndPanMap[] = { - {&nsGkAtoms::disable, nsIDOMSVGZoomAndPan::SVG_ZOOMANDPAN_DISABLE}, - {&nsGkAtoms::magnify, nsIDOMSVGZoomAndPan::SVG_ZOOMANDPAN_MAGNIFY}, - {nsnull, 0} -}; - static bool IsMatchingParameter(const nsAString &aString, const nsAString &aParameterName) { @@ -148,7 +142,6 @@ SVGFragmentIdentifier::ProcessSVGViewSpec(const nsAString &aViewSpec, } } - const nsSVGViewBoxRect *oldViewBoxPtr = root->GetViewBoxProperty(); if (viewBoxParams) { SaveOldViewBox(root); root->mViewBox.SetBaseValueString(*viewBoxParams, root); @@ -156,7 +149,6 @@ SVGFragmentIdentifier::ProcessSVGViewSpec(const nsAString &aViewSpec, RestoreOldViewBox(root); } - const SVGPreserveAspectRatio *oldPARPtr = root->GetPreserveAspectRatioProperty(); if (preserveAspectRatioParams) { SaveOldPreserveAspectRatio(root); root->mPreserveAspectRatio.SetBaseValueString(*preserveAspectRatioParams, root); @@ -164,7 +156,6 @@ SVGFragmentIdentifier::ProcessSVGViewSpec(const nsAString &aViewSpec, RestoreOldPreserveAspectRatio(root); } - const PRUint16 *oldZoomAndPanPtr = root->GetZoomAndPanProperty(); if (zoomAndPanParams) { SaveOldZoomAndPan(root); nsCOMPtr valAtom = do_GetAtom(*zoomAndPanParams);