From: masakih Date: Fri, 23 Oct 2015 15:20:47 +0000 (+0900) Subject: 不要になったメソッドを削除 X-Git-Tag: 1.3b16~5 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=3d9f3fd8b8fac9377ab1c89ed153a5e99d2bb7cf;p=kcd%2FKCD.git 不要になったメソッドを削除 --- diff --git a/KCD/HMSlotitemNameTransformer.m b/KCD/HMSlotitemNameTransformer.m index c69cd340..997b8fe0 100644 --- a/KCD/HMSlotitemNameTransformer.m +++ b/KCD/HMSlotitemNameTransformer.m @@ -13,29 +13,12 @@ #import "HMKCSlotItemObject+Extensions.h" #import "HMKCMasterSlotItemObject.h" -static NSDictionary *slotItemShortName = nil; - @implementation HMSlotitemNameTransformer + (void)load { static dispatch_once_t onceToken; dispatch_once(&onceToken, ^{ [NSValueTransformer setValueTransformer:[self new] forName:@"HMSlotitemNameTransformer"]; - - NSBundle *mainBundle = [NSBundle mainBundle]; - NSString *path = [mainBundle pathForResource:@"SlotItemShortName" ofType:@"plist"]; - if(!path) { - NSLog(@"Could not find SlotItemShortName.plist"); - NSBeep(); - return; - } - id dict = [NSDictionary dictionaryWithContentsOfFile:path]; - if(!dict) { - NSLog(@"SlotItemShortName.plist is not dictionay."); - NSBeep(); - return; - } - slotItemShortName = dict; }); } @@ -67,9 +50,6 @@ static NSDictionary *slotItemShortName = nil; } HMKCSlotItemObject *slotItem = array[0]; - NSString *mstIDString = [slotItem.master_slotItem.id stringValue]; - NSString *shortName = slotItemShortName[mstIDString]; - if(shortName) return shortName; return [slotItem.name copy]; }