[vlc-commits] macosx: Remove unnecessary comments in VLCMainWindowSplitView

Marvin Scholz git at videolan.org
Sun Jul 23 17:32:29 CEST 2017


vlc | branch: master | Marvin Scholz <epirat07 at gmail.com> | Sun Jul 23 17:08:46 2017 +0200| [ea98e1d2f321d1191e77ec86cfd541cb8f0e135d] | committer: Marvin Scholz

macosx: Remove unnecessary comments in VLCMainWindowSplitView

The comments were copied from the macOS SDK header file and explain
what the functions do, which does not require such a long comment and
is detailed in Apples documentation of NSSplitView too.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=ea98e1d2f321d1191e77ec86cfd541cb8f0e135d
---

 modules/gui/macosx/misc.m | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

diff --git a/modules/gui/macosx/misc.m b/modules/gui/macosx/misc.m
index 6aeb398cdf..f72d0020a6 100644
--- a/modules/gui/macosx/misc.m
+++ b/modules/gui/macosx/misc.m
@@ -298,22 +298,21 @@
 
 /*****************************************************************************
  * VLCMainWindowSplitView implementation
- * comment 1 + 2 taken from NSSplitView.h (10.7 SDK)
  *****************************************************************************/
 @implementation VLCMainWindowSplitView : NSSplitView
-/* Return the color of the dividers that the split view is drawing between subviews. The default implementation of this method returns [NSColor clearColor] for the thick divider style. It will also return [NSColor clearColor] for the thin divider style when the split view is in a textured window. All other thin dividers are drawn with a color that looks good between two white panes. You can override this method to change the color of dividers.
- */
+
+// Custom color for the dividers
 - (NSColor *)dividerColor
 {
     return [NSColor colorWithCalibratedRed:.60 green:.60 blue:.60 alpha:1.];
 }
 
-/* Return the thickness of the dividers that the split view is drawing between subviews. The default implementation returns a value that depends on the divider style. You can override this method to change the size of dividers.
- */
+// Custom thickness for the divider
 - (CGFloat)dividerThickness
 {
     return 1.0;
 }
+
 @end
 
 /*****************************************************************************



More information about the vlc-commits mailing list