Bug 1596339 Part 7 - Delete unused operator<< for nsRect. r=dholbert

Differential Revision: https://phabricator.services.mozilla.com/D53118

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Ting-Yu Lin 2019-11-15 03:52:21 +00:00
parent ae3f310d62
commit b58e44b74e
2 changed files with 0 additions and 28 deletions

View File

@ -32,26 +32,3 @@ bool nsRect::Overflows() const {
return !xMost.isValid() || !yMost.isValid();
#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.Append('{');
tmp.AppendFloat(NSAppUnitsToFloatPixels(rect.X(), AppUnitsPerCSSPixel()));
tmp.AppendLiteral(", ");
tmp.AppendFloat(NSAppUnitsToFloatPixels(rect.Y(), AppUnitsPerCSSPixel()));
tmp.AppendLiteral(", ");
tmp.AppendFloat(NSAppUnitsToFloatPixels(rect.Width(), AppUnitsPerCSSPixel()));
tmp.AppendLiteral(", ");
tmp.AppendFloat(
NSAppUnitsToFloatPixels(rect.Height(), AppUnitsPerCSSPixel()));
tmp.Append('}');
fputs(NS_LossyConvertUTF16toASCII(tmp).get(), out);
return out;
}
#endif // DEBUG

View File

@ -493,9 +493,4 @@ nsRect ToAppUnits(const mozilla::gfx::IntRectTyped<units>& aRect,
NSIntPixelsToAppUnits(aRect.Height(), aAppUnitsPerPixel));
}
#ifdef DEBUG
// Diagnostics
extern FILE* operator<<(FILE* out, const nsRect& rect);
#endif // DEBUG
#endif /* NSRECT_H */