OSDN Git Service

不要になったメソッドを削除
authormasakih <masakih@users.sourceforge.jp>
Fri, 23 Oct 2015 15:20:47 +0000 (00:20 +0900)
committermasakih <masakih@users.sourceforge.jp>
Fri, 23 Oct 2015 15:20:47 +0000 (00:20 +0900)
KCD/HMSlotitemNameTransformer.m

index c69cd34..997b8fe 100644 (file)
 #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];
 }