diff --git a/src/YSObject.h b/src/YSObject.h index ff72329..28203bb 100644 --- a/src/YSObject.h +++ b/src/YSObject.h @@ -6,36 +6,6 @@ typedef unsigned int YSUInteger; -/* @protocol YSObject --(Class) class; --(Class) superclass; -//-(BOOL) isEqual: (id)anObject; -//-(BOOL) isKindOfClass: (Class)aClass; -//-(BOOL) isMemberOfClass: (Class)aClass; -//-(BOOL) isProxy; -//-(YSUInteger) hash; --(id) self; - -//-(id) performSelector: (SEL)aSelector; - -//-(id) performSelector: (SEL)aSelector -// withObject: (id)anObject; - -//-(id) performSelector: (SEL)aSelector -// withObject: (id)object1 -// withObject: (id)object2; - -//-(BOOL) respondsToSelector: (SEL)aSelector; -//-(BOOL) conformsToProtocol: (Protocol *)aProtocol; - -//-(id) retain; -//-(oneway void) release; -//-(id) autorelease; -//-(YSUInteger) retainCount; -//-(YSString *) description; --(YSZone *)zone; -@end */ - @interface YSObject : Object { } diff --git a/src/YSObject.m b/src/YSObject.m index f241cbf..2211a14 100644 --- a/src/YSObject.m +++ b/src/YSObject.m @@ -65,12 +65,12 @@ inline id YSDeallocateObject(id theObject) { return self; } +#if !defined(__MINGW32__) && !defined(__MINGW64__) + -(void) dealloc { YSDeallocateObject(self); } -#if !defined(__MINGW32__) && !defined(__MINGW64__) - -(id) self { return self; } diff --git a/src/YSString.h b/src/YSString.h index 4f39339..2349e8a 100644 --- a/src/YSString.h +++ b/src/YSString.h @@ -10,7 +10,6 @@ -(const char *) cString; -(unsigned int) length; --(void) dealloc; @end diff --git a/src/YSString.m b/src/YSString.m index 09320e9..afccf80 100644 --- a/src/YSString.m +++ b/src/YSString.m @@ -9,10 +9,4 @@ return len; } -//free(): invalid pointer --(void) dealloc { - //[super dealloc]; - free(c_string); -} - @end \ No newline at end of file