Browse Source

Clean up.

#565
NathanSweet 9 years ago
parent
commit
05d60e5377
1 changed files with 4 additions and 5 deletions
  1. 4 5
      spine-cocos2dx/3/src/spine/Cocos2dAttachmentLoader.cpp

+ 4 - 5
spine-cocos2dx/3/src/spine/Cocos2dAttachmentLoader.cpp

@@ -111,11 +111,10 @@ void _Cocos2dAttachmentLoader_disposeAttachment (spAttachmentLoader* loader, spA
 	}
 }
 
-void _Cocos2dAttachmentLoader_dispose(spAttachmentLoader* self)
-{
-	Cocos2dAttachmentLoader* selfCocos2dLoader = SUB_CAST(Cocos2dAttachmentLoader,self);
-	_spAttachmentLoader_dispose(SUPER_CAST(spAttachmentLoader,selfCocos2dLoader->atlasAttachmentLoader));
-	_spAttachmentLoader_deinit(self);
+void _Cocos2dAttachmentLoader_dispose (spAttachmentLoader* loader) {
+	Cocos2dAttachmentLoader* self = SUB_CAST(Cocos2dAttachmentLoader, loader);
+	spAttachmentLoader_dispose(SUPER_CAST(spAttachmentLoader, self->atlasAttachmentLoader));
+	_spAttachmentLoader_deinit(loader);
 }
 
 Cocos2dAttachmentLoader* Cocos2dAttachmentLoader_create (spAtlas* atlas) {