mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 05:41:12 +00:00
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:
parent
ae3f310d62
commit
b58e44b74e
@ -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
|
||||
|
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user