OSDN Git Service

変換後に元のファイルを削除する機能を削除
authoryukihane <yukihane.feather@gmail.com>
Sun, 26 Jun 2011 11:05:28 +0000 (20:05 +0900)
committeryukihane <yukihane.feather@gmail.com>
Sun, 26 Jun 2011 12:09:39 +0000 (21:09 +0900)
frontend/docs/nextspec.xlsx
frontend/src/saccubus/converter/Converter.java
frontend/src/yukihane/saccubus/converter/profile/InputFileSetting.java

index bc9be45..3d91775 100644 (file)
Binary files a/frontend/docs/nextspec.xlsx and b/frontend/docs/nextspec.xlsx differ
index 677a8aa..e78ac1c 100644 (file)
@@ -145,17 +145,6 @@ public class Converter extends AbstractCommand implements Runnable, Callable<Boo
 
         boolean res = new FfmpegCommand(getListener(), getStopFlag(), commentFile, tcommFile, videoFile,
                 convertedVideoFile, profile.getFfmpeg(), profile.getGeneralSetting()).execute();
-        if (res) {
-            if (profile.getCommentSetting().isDelete()) {
-                commentFile.delete();
-            }
-            if (profile.getVideoSetting().isDelete()) {
-                videoFile.delete();
-            }
-            if (profile.getTcommentSetting().isDelete()) {
-                tcommFile.delete();
-            }
-        }
         return res;
     }
 
@@ -197,16 +186,6 @@ public class Converter extends AbstractCommand implements Runnable, Callable<Boo
             if (!a.canRead()) {
                 throw new IllegalArgumentException("フォントが見つかりません。");
             }
-        } else {
-            if (profile.getVideoSetting().isDelete()) {
-                throw new IllegalArgumentException("変換しないのに、動画削除しちゃって良いんですか?");
-            }
-            if (profile.getCommentSetting().isDelete()) {
-                throw new IllegalArgumentException("変換しないのに、コメント削除しちゃって良いんですか?");
-            }
-            if (profile.getTcommentSetting().isDelete()) {
-                throw new IllegalArgumentException("変換しないのに、投稿者コメント削除しちゃって良いんですか?");
-            }
         }
     }