Bug 1542454 - Remove unused function COLOR8TOCOLOR16. r=spohl

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

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Markus Stange 2019-04-22 19:41:21 +00:00
parent de6910917a
commit 0f29789b59

View File

@ -1239,11 +1239,6 @@ bool nsChildView::ShouldUseOffMainThreadCompositing() {
return nsBaseWidget::ShouldUseOffMainThreadCompositing();
}
inline uint16_t COLOR8TOCOLOR16(uint8_t color8) {
// return (color8 == 0xFF ? 0xFFFF : (color8 << 8));
return (color8 << 8) | color8; /* (color8 * 257) == (color8 * 0x0101) */
}
#pragma mark -
nsresult nsChildView::ConfigureChildren(const nsTArray<Configuration>& aConfigurations) {