Bug 1667176 - Remove unused sRGBColor AppendToString function. r=mattwoodrow

Depends on D91336

Differential Revision: https://phabricator.services.mozilla.com/D91337
This commit is contained in:
Kartikaya Gupta 2020-09-25 08:57:24 +00:00
parent 90e40536c2
commit d8fb331a86
2 changed files with 0 additions and 12 deletions

View file

@ -21,15 +21,6 @@ using namespace mozilla::gfx;
namespace mozilla {
namespace layers {
void AppendToString(std::stringstream& aStream, const sRGBColor& c,
const char* pfx, const char* sfx) {
aStream << pfx;
aStream << nsPrintfCString("rgba(%d, %d, %d, %f)", uint8_t(c.r * 255.f),
uint8_t(c.g * 255.f), uint8_t(c.b * 255.f), c.a)
.get();
aStream << sfx;
}
void AppendToString(std::stringstream& aStream, const DeviceColor& c,
const char* pfx, const char* sfx) {
aStream << pfx;

View file

@ -34,9 +34,6 @@ enum class ImageFormat;
namespace layers {
struct ZoomConstraints;
void AppendToString(std::stringstream& aStream, const gfx::sRGBColor& c,
const char* pfx = "", const char* sfx = "");
void AppendToString(std::stringstream& aStream, const gfx::DeviceColor& c,
const char* pfx = "", const char* sfx = "");