Bug 669522: Removed unused function bool IsFloatInteger(float) r=joe
authorJeff Gilbert <jgilbert@mozilla.com>
Mon, 11 Jul 2011 12:24:21 -0700
changeset 73043 aaeabf9d44d487162d9b42e940953fbf5bec3c6c
parent 73042 67397e750a3a4370a3c0d7a7745bc5bd83532e16
child 73044 6be6854338bd5af086f53abb6054ed8e1875acc2
push idunknown
push userunknown
push dateunknown
reviewersjoe
bugs669522
milestone8.0a1
Bug 669522: Removed unused function bool IsFloatInteger(float) r=joe
gfx/src/nsRect.cpp
--- a/gfx/src/nsRect.cpp
+++ b/gfx/src/nsRect.cpp
@@ -43,23 +43,16 @@
 
 // the mozilla::css::Side sequence must match the nsMargin nscoord sequence
 PR_STATIC_ASSERT((NS_SIDE_TOP == 0) && (NS_SIDE_RIGHT == 1) && (NS_SIDE_BOTTOM == 2) && (NS_SIDE_LEFT == 3));
 
 /* static */
 const nsIntRect nsIntRect::kMaxSizedIntRect(0, 0, INT_MAX, INT_MAX);
 
 #ifdef DEBUG
-static bool IsFloatInteger(float aFloat)
-{
-  return fabs(aFloat - NS_round(aFloat)) < 1e-6;
-}
-#endif
-
-#ifdef DEBUG
 // Diagnostics
 
 FILE* operator<<(FILE* out, const nsRect& rect)
 {
   nsAutoString tmp;
 
   // Output the coordinates in fractional pixels so they're easier to read
   tmp.AppendLiteral("{");