Bug 1335191 - Remove unused mTitlebarView field. r?spohl draft
authorMarkus Stange <mstange@themasta.com>
Fri, 23 Mar 2018 17:35:56 -0400
changeset 771997 01100337103fb9983f52fac7e6eaf223befd5e9a
parent 771944 d7b0d0e7228da9d690df6f105b865db973789c34
child 771998 627522a705302f0f338f29875fd3cc2e2897c0bf
push id103824
push userbmo:mstange@themasta.com
push dateSat, 24 Mar 2018 15:07:17 +0000
reviewersspohl
bugs1335191
milestone61.0a1
Bug 1335191 - Remove unused mTitlebarView field. r?spohl This field has been unused since https://hg.mozilla.org/mozilla-central/rev/18fc103cb90e . MozReview-Commit-ID: F5KJ0GE7h8H
widget/cocoa/nsCocoaWindow.h
widget/cocoa/nsCocoaWindow.mm
--- a/widget/cocoa/nsCocoaWindow.h
+++ b/widget/cocoa/nsCocoaWindow.h
@@ -173,17 +173,16 @@ typedef struct _nsCocoaWindowList {
 @end
 
 // NSWindow subclass for handling windows with toolbars.
 @interface ToolbarWindow : BaseWindow
 {
   TitlebarAndBackgroundColor *mColor; // strong
   CGFloat mUnifiedToolbarHeight;
   NSColor *mBackgroundColor; // strong
-  NSView *mTitlebarView; // strong
   NSRect mWindowButtonsRect;
   NSRect mFullScreenButtonRect;
 }
 // Pass nil here to get the default appearance.
 - (void)setTitlebarColor:(NSColor*)aColor forActiveWindow:(BOOL)aActive;
 - (void)setUnifiedToolbarHeight:(CGFloat)aHeight;
 - (CGFloat)unifiedToolbarHeight;
 - (CGFloat)titlebarHeight;
--- a/widget/cocoa/nsCocoaWindow.mm
+++ b/widget/cocoa/nsCocoaWindow.mm
@@ -3599,17 +3599,16 @@ static const NSString* kStateCollectionB
 
 - (void)dealloc
 {
   NS_OBJC_BEGIN_TRY_ABORT_BLOCK;
 
   [super setBackgroundColor:[NSColor whiteColor]];
   [mColor release];
   [mBackgroundColor release];
-  [mTitlebarView release];
   [super dealloc];
 
   NS_OBJC_END_TRY_ABORT_BLOCK;
 }
 
 - (void)setTitlebarColor:(NSColor*)aColor forActiveWindow:(BOOL)aActive
 {
   [super setTitlebarColor:aColor forActiveWindow:aActive];