Bug 1542454 - Remove unused function COLOR8TOCOLOR16. r=spohl
☠☠ backed out by 73e8dcb8be07 ☠ ☠
authorMarkus Stange <mstange@themasta.com>
Mon, 22 Apr 2019 19:41:21 +0000
changeset 470396 19f0462bb47a3ae0e301b7ff2723407a9c178c2d
parent 470395 b4440b1833ece120e7680763b55168913b18e0d4
child 470397 37bd2819d3a7dc23f7661c494486a93f1d1a4977
push id35905
push userdvarga@mozilla.com
push dateTue, 23 Apr 2019 09:53:27 +0000
treeherdermozilla-central@831918f009f6 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersspohl
bugs1542454
milestone68.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1542454 - Remove unused function COLOR8TOCOLOR16. r=spohl Differential Revision: https://phabricator.services.mozilla.com/D26400
widget/cocoa/nsChildView.mm
--- a/widget/cocoa/nsChildView.mm
+++ b/widget/cocoa/nsChildView.mm
@@ -1234,21 +1234,16 @@ bool nsChildView::WidgetTypeSupportsAcce
 
 bool nsChildView::ShouldUseOffMainThreadCompositing() {
   // Don't use OMTC for transparent windows or for popup windows.
   if (!WidgetTypeSupportsAcceleration()) return false;
 
   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) {
   return NS_OK;
 }
 
 // Invokes callback and ProcessEvent methods on Event Listener object
 nsresult nsChildView::DispatchEvent(WidgetGUIEvent* event, nsEventStatus& aStatus) {