removed mods directory from the ATutor codebase
[atutor.git] / mods / atsocial_iphone_app / Classes / Contact.m
diff --git a/mods/atsocial_iphone_app/Classes/Contact.m b/mods/atsocial_iphone_app/Classes/Contact.m
deleted file mode 100644 (file)
index 741ad1a..0000000
+++ /dev/null
@@ -1,52 +0,0 @@
-//
-//  Contact.m
-//  ATutor
-//
-//  Created by Quang Anh Do on 03/07/2010.
-//  Copyright 2010 Quang Anh Do. All rights reserved.
-//
-
-#import "Contact.h"
-
-
-@implementation Contact
-
-@synthesize identifier;
-@synthesize displayName;
-
-
-/* dealloc */
-- (void) dealloc {
-    [displayName release];
-       
-    [super dealloc];
-}
-
-+ (Contact *)contactWithDictionary:(NSDictionary *)dictionary {
-       Contact *contact = [[self alloc] init]; 
-       contact.identifier = [[dictionary objectForKey:@"id"] intValue];
-       contact.displayName = [dictionary objectForKey:@"displayName"];
-       
-       return [contact autorelease];
-}
-
-#pragma mark -
-#pragma mark Keyed Archiving
-
-/*  Keyed Archiving */
-//
-- (void) encodeWithCoder: (NSCoder *)encoder {
-    [encoder encodeInt: [self identifier] forKey: @"identifier"];
-    [encoder encodeObject: [self displayName] forKey: @"displayName"];
-}
-
-- (id) initWithCoder: (NSCoder *)decoder {
-    self = [super init];
-    if (self) {
-        [self setIdentifier: [decoder decodeIntForKey: @"identifier"]];
-        [self setDisplayName: [decoder decodeObjectForKey: @"displayName"]];
-    }
-    return self;
-}
-
-@end