From 7b78f2c762ae4bcadfa28af3bedcc73cf4b9e4ec Mon Sep 17 00:00:00 2001 From: Stan Date: Fri, 14 Sep 2018 18:26:34 +0100 Subject: [PATCH] remove unused file --- .../dice/dicewhere/api/api/AnonymousState.java | 17 ----------------- .../dice/dicewhere/building/IPDatabase.java | 1 - 2 files changed, 18 deletions(-) delete mode 100644 src/main/java/technology/dice/dicewhere/api/api/AnonymousState.java diff --git a/src/main/java/technology/dice/dicewhere/api/api/AnonymousState.java b/src/main/java/technology/dice/dicewhere/api/api/AnonymousState.java deleted file mode 100644 index 870df10..0000000 --- a/src/main/java/technology/dice/dicewhere/api/api/AnonymousState.java +++ /dev/null @@ -1,17 +0,0 @@ -package technology.dice.dicewhere.api.api; - -import technology.dice.dicewhere.lineprocessing.serializers.protobuf.AnonymousStateProtoOuterClass; - -import java.util.Arrays; - -/** - * Created by stan on 14/09/2018 - */ - -public enum AnonymousState { - NOT_SPECIFIED, NOT_ANONYMOUS, IS_ANONYMOUS, IS_ANONYMOUS_VPN; - - public static AnonymousState fromAnonymousStateProto(AnonymousStateProtoOuterClass.AnonymousStateProto protoValue) { - return Arrays.stream(AnonymousState.values()).filter(a -> a.name().equals(protoValue.name())).findFirst().orElse(NOT_SPECIFIED); - } -} diff --git a/src/main/java/technology/dice/dicewhere/building/IPDatabase.java b/src/main/java/technology/dice/dicewhere/building/IPDatabase.java index 7e32652..1bd305c 100644 --- a/src/main/java/technology/dice/dicewhere/building/IPDatabase.java +++ b/src/main/java/technology/dice/dicewhere/building/IPDatabase.java @@ -11,7 +11,6 @@ import java.util.NavigableMap; import java.util.Optional; -import technology.dice.dicewhere.api.api.AnonymousState; import technology.dice.dicewhere.api.api.IP; import technology.dice.dicewhere.api.api.IpInformation; import technology.dice.dicewhere.lineprocessing.serializers.protobuf.IPInformationProto;