Bug 757177: Remove unused variables from SVGFragmentIdentifier.cpp. r=longsonr

This commit is contained in:
Daniel Holbert 2012-05-21 13:38:50 -07:00
parent a730b2ffe9
commit 1bc91e5a66

View File

@ -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<nsIAtom> valAtom = do_GetAtom(*zoomAndPanParams);