From d8fb331a86af44eecdf414e90c478d9beb76f7f6 Mon Sep 17 00:00:00 2001 From: Kartikaya Gupta Date: Fri, 25 Sep 2020 08:57:24 +0000 Subject: [PATCH] Bug 1667176 - Remove unused sRGBColor AppendToString function. r=mattwoodrow Depends on D91336 Differential Revision: https://phabricator.services.mozilla.com/D91337 --- gfx/layers/LayersLogging.cpp | 9 --------- gfx/layers/LayersLogging.h | 3 --- 2 files changed, 12 deletions(-) diff --git a/gfx/layers/LayersLogging.cpp b/gfx/layers/LayersLogging.cpp index f980e9009ba8..1fc3fc655352 100644 --- a/gfx/layers/LayersLogging.cpp +++ b/gfx/layers/LayersLogging.cpp @@ -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; diff --git a/gfx/layers/LayersLogging.h b/gfx/layers/LayersLogging.h index 6b5bf1415f6e..01aa85fc9697 100644 --- a/gfx/layers/LayersLogging.h +++ b/gfx/layers/LayersLogging.h @@ -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 = "");