Bug 1542454 - Remove unused function COLOR8TOCOLOR16. r=spohl
authorMarkus Stange <mstange@themasta.com>
Mon, 29 Apr 2019 17:02:16 +0000
changeset 530804 505b94ceb787ec3ea5166bffb39b607542c12968
parent 530803 2de8fcb8a3416988e336632913158ed086ec2b7f
child 530805 d7ae6a47910b8e49ca2d749215c65484b3ec97a6
push id11265
push userffxbld-merge
push dateMon, 13 May 2019 10:53:39 +0000
treeherdermozilla-beta@77e0fe8dbdd3 [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
@@ -1236,21 +1236,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) {