From 6a8c4784a44502e5669b1f436c34a5a37977f349 Mon Sep 17 00:00:00 2001 From: Ricardo Quesada Date: Wed, 20 Nov 2013 11:26:33 -0800 Subject: [PATCH] Adds some #pragma mark love --- cocos/2d/CCLayer.h | 4 --- cocos/2d/platform/ios/EAGLView.mm | 15 ++++------ cocos/2d/platform/mac/CCEventDispatcherMac.h | 9 ++---- cocos/audio/ios/CocosDenshion.m | 30 +++++++------------- 4 files changed, 18 insertions(+), 40 deletions(-) diff --git a/cocos/2d/CCLayer.h b/cocos/2d/CCLayer.h index 617b27f3d9..a33e949d12 100644 --- a/cocos/2d/CCLayer.h +++ b/cocos/2d/CCLayer.h @@ -183,10 +183,6 @@ private: CC_DEPRECATED_ATTRIBUTE int executeScriptTouchesHandler(EventTouch::EventCode eventType, const std::vector& touches); }; -#ifdef __apple__ -#pragma mark - -#pragma mark LayerRGBA -#endif /** LayerRGBA is a subclass of Layer that implements the RGBAProtocol protocol using a solid color as the background. diff --git a/cocos/2d/platform/ios/EAGLView.mm b/cocos/2d/platform/ios/EAGLView.mm index f16f399b7d..bb00a70c54 100644 --- a/cocos/2d/platform/ios/EAGLView.mm +++ b/cocos/2d/platform/ios/EAGLView.mm @@ -478,8 +478,7 @@ static CCEAGLView *__view = 0; cocos2d::EGLView::getInstance()->handleTouchesCancel(i, (long*)ids, xs, ys); } -#pragma mark - -#pragma mark UIView - Responder +#pragma mark - UIView - Responder - (BOOL)canBecomeFirstResponder { @@ -506,8 +505,7 @@ static CCEAGLView *__view = 0; return [super resignFirstResponder]; } -#pragma mark - -#pragma mark UIKeyInput protocol +#pragma mark - UIKeyInput protocol - (BOOL)hasText @@ -534,16 +532,14 @@ static CCEAGLView *__view = 0; cocos2d::IMEDispatcher::sharedDispatcher()->dispatchDeleteBackward(); } -#pragma mark - -#pragma mark UITextInputTrait protocol +#pragma mark - UITextInputTrait protocol -(UITextAutocapitalizationType) autocapitalizationType { return UITextAutocapitalizationTypeNone; } -#pragma mark - -#pragma mark UITextInput protocol +#pragma mark - UITextInput protocol #pragma mark UITextInput - properties @@ -727,8 +723,7 @@ static CCEAGLView *__view = 0; return nil; } -#pragma mark - -#pragma mark UIKeyboard notification +#pragma mark - UIKeyboard notification - (void)onUIKeyboardNotification:(NSNotification *)notif; { diff --git a/cocos/2d/platform/mac/CCEventDispatcherMac.h b/cocos/2d/platform/mac/CCEventDispatcherMac.h index 402de58483..5bf0389792 100644 --- a/cocos/2d/platform/mac/CCEventDispatcherMac.h +++ b/cocos/2d/platform/mac/CCEventDispatcherMac.h @@ -37,8 +37,7 @@ #import "ccConfig.h" //NS_CC_BEGIN; -#pragma mark - -#pragma mark MouseEventDelegate +#pragma mark - MouseEventDelegate /** MouseEventDelegate protocol. Implement it in your node to receive any of mouse events @@ -135,8 +134,7 @@ @end -#pragma mark - -#pragma mark KeyboardEventDelegate +#pragma mark - KeyboardEventDelegate /** KeyboardEventDelegate protocol. Implement it in your node to receive any of keyboard events @@ -189,8 +187,7 @@ @end -#pragma mark - -#pragma mark EventDispatcher +#pragma mark - EventDispatcher struct _listEntry; diff --git a/cocos/audio/ios/CocosDenshion.m b/cocos/audio/ios/CocosDenshion.m index 8e8cd9c8cc..bc3a995766 100644 --- a/cocos/audio/ios/CocosDenshion.m +++ b/cocos/audio/ios/CocosDenshion.m @@ -77,8 +77,7 @@ float const kCD_GainDefault = 1.0f; -(BOOL) _setUpSourceGroups:(int[]) definitions total:(NSUInteger) total; @end -#pragma mark - -#pragma mark CDUtilities +#pragma mark - CDUtilities @implementation CDUtilities @@ -1262,8 +1261,7 @@ static BOOL _mixerRateSet = NO; @end //////////////////////////////////////////////////////////////////////////// -#pragma mark - -#pragma mark CDAudioInterruptTargetGroup +#pragma mark - CDAudioInterruptTargetGroup @implementation CDAudioInterruptTargetGroup @@ -1326,8 +1324,7 @@ static BOOL _mixerRateSet = NO; //////////////////////////////////////////////////////////////////////////// -#pragma mark - -#pragma mark CDAsynchBufferLoader +#pragma mark - CDAsynchBufferLoader @implementation CDAsynchBufferLoader @@ -1371,8 +1368,7 @@ static BOOL _mixerRateSet = NO; /////////////////////////////////////////////////////////////////////////////////////// -#pragma mark - -#pragma mark CDBufferLoadRequest +#pragma mark - CDBufferLoadRequest @implementation CDBufferLoadRequest @@ -1394,8 +1390,7 @@ static BOOL _mixerRateSet = NO; @end /////////////////////////////////////////////////////////////////////////////////////// -#pragma mark - -#pragma mark CDFloatInterpolator +#pragma mark - CDFloatInterpolator @implementation CDFloatInterpolator @synthesize start,end,interpolationType; @@ -1443,8 +1438,7 @@ static BOOL _mixerRateSet = NO; @end /////////////////////////////////////////////////////////////////////////////////////// -#pragma mark - -#pragma mark CDPropertyModifier +#pragma mark - CDPropertyModifier @implementation CDPropertyModifier @@ -1542,8 +1536,7 @@ static BOOL _mixerRateSet = NO; @end /////////////////////////////////////////////////////////////////////////////////////// -#pragma mark - -#pragma mark CDSoundSourceFader +#pragma mark - CDSoundSourceFader @implementation CDSoundSourceFader @@ -1566,8 +1559,7 @@ static BOOL _mixerRateSet = NO; @end /////////////////////////////////////////////////////////////////////////////////////// -#pragma mark - -#pragma mark CDSoundSourcePanner +#pragma mark - CDSoundSourcePanner @implementation CDSoundSourcePanner @@ -1590,8 +1582,7 @@ static BOOL _mixerRateSet = NO; @end /////////////////////////////////////////////////////////////////////////////////////// -#pragma mark - -#pragma mark CDSoundSourcePitchBender +#pragma mark - CDSoundSourcePitchBender @implementation CDSoundSourcePitchBender @@ -1614,8 +1605,7 @@ static BOOL _mixerRateSet = NO; @end /////////////////////////////////////////////////////////////////////////////////////// -#pragma mark - -#pragma mark CDSoundEngineFader +#pragma mark - CDSoundEngineFader @implementation CDSoundEngineFader