Removes some debug logging statements.

This commit is contained in:
2020-09-07 18:17:03 -07:00
parent 0cff85092b
commit 2a20e7262d

View File

@@ -19,32 +19,25 @@
}
-(id)init {
NSLog(@"TOM_init");
self = [super init];
self.name = @"";
// TODO: Actually initialize the class.
return self;
}
-(id)initWithJSONString: (NSString*)jsonString {
NSLog(@"TOM_initWithJSONString");
NSData* jsonData = [jsonString dataUsingEncoding:NSUTF8StringEncoding];
return [self initWithJSONData:jsonData];
}
-(id)initWithJSONData: (NSData*)jsonData {
NSLog(@"TOM_initWithJSONData");
self = [super init];
NSDictionary *jsonRoot = [NSJSONSerialization JSONObjectWithData:jsonData options:0 error:nil];
NSString *name = [jsonRoot objectForKey:@"name"];
NSLog(@"decoded name is |%@|", name);
self.name = name;//[jsonRoot objectForKey:@"name"];
// TODO: Actually initialize the class.
self.name = [jsonRoot objectForKey:@"name"];
return self;
}