Browse Source

removed dead code

Armin Schrenk 5 months ago
parent
commit
83b557b6be
1 changed files with 2 additions and 11 deletions
  1. 2 11
      src/main/java/org/cryptomator/event/VaultEvent.java

+ 2 - 11
src/main/java/org/cryptomator/event/VaultEvent.java

@@ -3,28 +3,19 @@ package org.cryptomator.event;
 import org.cryptomator.common.vaults.Vault;
 import org.cryptomator.cryptofs.event.FilesystemEvent;
 
-import java.time.Instant;
-
 public record VaultEvent(Vault v, FilesystemEvent actualEvent, int count) implements Comparable<VaultEvent> {
 
-	public VaultEvent(Vault v, FilesystemEvent actualEvent) {
-		this(v, actualEvent, 1);
-	}
-
 	@Override
 	public int compareTo(VaultEvent other) {
 		var timeResult = actualEvent.getTimestamp().compareTo(other.actualEvent().getTimestamp());
-		if(timeResult != 0) {
+		if (timeResult != 0) {
 			return timeResult;
 		}
 		var vaultIdResult = v.getId().compareTo(other.v.getId());
-		if(vaultIdResult != 0) {
+		if (vaultIdResult != 0) {
 			return vaultIdResult;
 		}
 		return this.actualEvent.getClass().getName().compareTo(other.actualEvent.getClass().getName());
 	}
 
-	public VaultEvent incrementCount(FilesystemEvent update) {
-		return new VaultEvent(v, update, count+1);
-	}
 }