mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-23 10:15:41 +00:00
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:
parent
de6910917a
commit
0f29789b59
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user