From: David ‘Bombe’ Roden Date: Sun, 20 Nov 2016 12:13:37 +0000 (+0100) Subject: Remove code that is never used X-Git-Tag: 0.9.7^2~409 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=fc7a8e50946811c7c291caaee9f53231807c2423;p=Sone.git Remove code that is never used --- 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); }