Remove code that is never used
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Sun, 20 Nov 2016 12:13:37 +0000 (13:13 +0100)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Sun, 20 Nov 2016 13:47:32 +0000 (14:47 +0100)
src/main/java/net/pterodactylus/sone/template/TrustAccessor.java

index fee047d..32650f1 100644 (file)
@@ -43,10 +43,6 @@ public class TrustAccessor extends ReflectionAccessor {
                Trust trust = (Trust) object;
                if ("assigned".equals(member)) {
                        return trust.getExplicit() != null;
-               } else if ("maximum".equals(member)) {
-                       return ((trust.getExplicit() != null) && (trust.getExplicit() >= 100)) || ((trust.getImplicit() != null) && (trust.getImplicit() >= 100));
-               } else if ("hasDistance".equals(member)) {
-                       return (trust.getDistance() != null) && (trust.getDistance() != Integer.MAX_VALUE);
                }
                return super.get(templateContext, object, member);
        }