From fc7a8e50946811c7c291caaee9f53231807c2423 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Sun, 20 Nov 2016 13:13:37 +0100 Subject: [PATCH] Remove code that is never used --- src/main/java/net/pterodactylus/sone/template/TrustAccessor.java | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/main/java/net/pterodactylus/sone/template/TrustAccessor.java b/src/main/java/net/pterodactylus/sone/template/TrustAccessor.java index fee047d..32650f1 100644 --- a/src/main/java/net/pterodactylus/sone/template/TrustAccessor.java +++ b/src/main/java/net/pterodactylus/sone/template/TrustAccessor.java @@ -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); } -- 2.7.4