[core] Removed unused namedColorCount

warning: unused variable 'namedColorCount' [clang-diagnostic-unused-const-variable]
This commit is contained in:
Bruno de Oliveira Abinader
2017-05-12 16:58:53 +03:00
parent 6f993230f2
commit 24fa773fae

View File

@@ -110,9 +110,6 @@ const NamedColor namedColors[] = {
{ "yellow", { 255, 255, 0, 1 } }, { "yellowgreen", { 154, 205, 50, 1 } }
};
const size_t namedColorCount = sizeof (namedColors) / sizeof (NamedColor);
template <typename T>
uint8_t clamp_css_byte(T i) { // Clamp to integer 0 .. 255.
i = ::round(i); // Seems to be what Chrome does (vs truncation).