summaryrefslogtreecommitdiff
path: root/src/main/java/com/keuin/kbackupfabric/ui/PrimitiveBackupInfo.java
diff options
context:
space:
mode:
authorKeuin <[email protected]>2023-01-13 02:49:57 +0800
committerKeuin <[email protected]>2023-01-13 02:49:57 +0800
commit5dc6e700cbcbc01833a02a193f660a286b934898 (patch)
tree72cf4cc3cfae2b3a7fb978bc0c465e329909db3e /src/main/java/com/keuin/kbackupfabric/ui/PrimitiveBackupInfo.java
parentff7d23b5b915f04c2b5f3614701cb56cfc605228 (diff)
Code cleanup.
Diffstat (limited to 'src/main/java/com/keuin/kbackupfabric/ui/PrimitiveBackupInfo.java')
-rw-r--r--src/main/java/com/keuin/kbackupfabric/ui/PrimitiveBackupInfo.java5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/main/java/com/keuin/kbackupfabric/ui/PrimitiveBackupInfo.java b/src/main/java/com/keuin/kbackupfabric/ui/PrimitiveBackupInfo.java
index 1895647..e3a0060 100644
--- a/src/main/java/com/keuin/kbackupfabric/ui/PrimitiveBackupInfo.java
+++ b/src/main/java/com/keuin/kbackupfabric/ui/PrimitiveBackupInfo.java
@@ -38,11 +38,6 @@ public class PrimitiveBackupInfo implements BackupInfo {
public static PrimitiveBackupInfo fromFile(File zipFile) {
// TODO: fix this, use metadata file instead
-// fileName = zipFile.getName();
-// BackupFileNameEncoder.BackupBasicInformation info = PrimitiveBackupFileNameEncoder.INSTANCE.decode(fileName);
-// if (info == null)
-// throw new IllegalArgumentException("Invalid file name.");
-// return new PrimitiveBackupInfo(info.customName, info.time, FilesystemUtil.getFileSizeBytes(zipFile));
return new PrimitiveBackupInfo(zipFile.getName(), FilesystemUtil.getFileSizeBytes(zipFile));
}