From edc8a9bff79223aba9e26224964531e8bb87ea09 Mon Sep 17 00:00:00 2001 From: Ms2ger Date: Sun, 27 Feb 2011 11:00:00 -0500 Subject: [PATCH] Bug 637180 - Unused function IsFloatInteger; r=matt.woodrow --- gfx/src/nsRect.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gfx/src/nsRect.cpp b/gfx/src/nsRect.cpp index d4595b801b3..b33bfbf1045 100644 --- a/gfx/src/nsRect.cpp +++ b/gfx/src/nsRect.cpp @@ -205,10 +205,12 @@ nsRect& nsRect::ScaleRoundOut(float aXScale, float aYScale) return *this; } +#ifdef DEBUG static bool IsFloatInteger(float aFloat) { return fabs(aFloat - NS_round(aFloat)) < 1e-6; } +#endif nsRect& nsRect::ExtendForScaling(float aXMult, float aYMult) {