emacs-31 050ca1a40fc: ; Remove NS port toolbar styling code (bug#80307)

Alan Third <[email protected]>
Newsgroups gmane.emacs.diffs
Message-ID <[email protected]>
branch: emacs-31
commit 050ca1a40fcf6a6dc1d1b1815c7dbc3dac53696b
Author: Alan Third <[email protected]>
Commit: Alan Third <[email protected]>

    ; Remove NS port toolbar styling code (bug#80307)
    
    Reverts cbf9c5873056657865c5a149ece5122a8d03011a.
    
    * src/nsterm.m: Remove the code that calls setToolbarStyle.
---
 src/nsterm.m | 8 --------
 1 file changed, 8 deletions(-)

diff --git a/src/nsterm.m b/src/nsterm.m
index f4de0a76c0a..120442cda25 100644
--- a/src/nsterm.m
+++ b/src/nsterm.m
@@ -9827,14 +9827,6 @@ static void cancel_ns_deferred_UAZoomChangeFocus_timer ()
 #ifdef NS_IMPL_COCOA
       if ([self respondsToSelector:@selector(setTabbingMode:)])
         [self setTabbingMode:NSWindowTabbingModeDisallowed];
-#endif
-      /* Always show the toolbar below the window title.  This is needed
-	 on Mac OS 11+ where the toolbar style is decided by the system
-	 (which is unpredictable) and the newfangled "compact" toolbar
-	 may be chosen (which is undesirable).  */
-#if defined (NS_IMPL_COCOA) && MAC_OS_X_VERSION_MAX_ALLOWED >= 110000
-      if ([self respondsToSelector:@selector(setToolbarStyle:)])
-	[self setToolbarStyle: NSWindowToolbarStyleExpanded];
 #endif
     }
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.