OSDN Git Service

スクリーンショットをとった時にテスト用ログが出力される問題を修正 1.3b15.1
authormasakih <masakih@users.sourceforge.jp>
Wed, 21 Oct 2015 11:10:54 +0000 (20:10 +0900)
committermasakih <masakih@users.sourceforge.jp>
Wed, 21 Oct 2015 11:10:54 +0000 (20:10 +0900)
KCD/HMScreenshotListWindowController.m

index d273191..8d5c8bd 100644 (file)
 {
        dispatch_queue_t queue = dispatch_queue_create("Screenshot queue", DISPATCH_QUEUE_SERIAL);
        dispatch_async(queue, ^{
-               NSDate *date00 = [NSDate dateWithTimeIntervalSinceNow:0.0];
+//             NSDate *date00 = [NSDate dateWithTimeIntervalSinceNow:0.0];
                
                NSData *imageData = [image representationUsingType:NSJPEGFileType properties:@{}];
                
                filename = [filename stringByAppendingPathExtension:@"jpg"];
                NSString *path = [[self screenshotSaveDirectoryPath] stringByAppendingPathComponent:filename];
                
-               NSDate *date01 = [NSDate dateWithTimeIntervalSinceNow:0.0];
+//             NSDate *date01 = [NSDate dateWithTimeIntervalSinceNow:0.0];
                
                path = [[NSFileManager defaultManager] _web_pathWithUniqueFilenameForPath:path];
                
-               NSDate *date02 = [NSDate dateWithTimeIntervalSinceNow:0.0];
+//             NSDate *date02 = [NSDate dateWithTimeIntervalSinceNow:0.0];
                
                [imageData writeToFile:path atomically:YES];
                
-               NSDate *date03 = [NSDate dateWithTimeIntervalSinceNow:0.0];
+//             NSDate *date03 = [NSDate dateWithTimeIntervalSinceNow:0.0];
                
                HMScreenshotInformation *info = [HMScreenshotInformation new];
                info.path = path;
                        [self.window makeKeyAndOrderFront:nil];
                }
                
-               NSDate *date04 = [NSDate dateWithTimeIntervalSinceNow:0.0];
+//             NSDate *date04 = [NSDate dateWithTimeIntervalSinceNow:0.0];
                
-               NSLog(@"01 -> %lf\n02 -> %lf\n03 -> %lf\n04 -> %lf",
-                         [date01 timeIntervalSinceDate:date00],
-                         [date02 timeIntervalSinceDate:date01],
-                         [date03 timeIntervalSinceDate:date02],
-                         [date04 timeIntervalSinceDate:date03]
-                         );
+//             NSLog(@"01 -> %lf\n02 -> %lf\n03 -> %lf\n04 -> %lf",
+//                       [date01 timeIntervalSinceDate:date00],
+//                       [date02 timeIntervalSinceDate:date01],
+//                       [date03 timeIntervalSinceDate:date02],
+//                       [date04 timeIntervalSinceDate:date03]
+//                       );
                
        });
 }