🔀 Merge branch 'release/v82'
[Sone.git] / src / main / java / net / pterodactylus / sone / template / TrustAccessor.java
index 7ba7a10..6ccc897 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Sone - TrustAccessor.java - Copyright Â© 2010–2013 David Roden
+ * Sone - TrustAccessor.java - Copyright Â© 2010–2020 David Roden
  *
  * This program is free software: you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -30,8 +30,6 @@ import net.pterodactylus.util.template.TemplateContext;
  * <dd>{@link Boolean} that indicates whether this trust relationship has an
  * explicit value assigned to it.</dd>
  * </dl>
- *
- * @author <a href="mailto:bombe@pterodactylus.net">David â€˜Bombe’ Roden</a>
  */
 public class TrustAccessor extends ReflectionAccessor {
 
@@ -43,10 +41,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);
        }