diff --git a/core/src/main/java/com/threerings/util/Resulting.java b/core/src/main/java/com/threerings/util/Resulting.java index 4f55db914..c348d2327 100644 --- a/core/src/main/java/com/threerings/util/Resulting.java +++ b/core/src/main/java/com/threerings/util/Resulting.java @@ -189,7 +189,7 @@ public class Resulting extends Invoker.Unit // from InvocationService.InvocationListener public final void requestFailed (String error) { - requestFailed(INV_EX.get().setMessage(error)); + requestFailed(new InvocationException(error)); } // from InvocationService.ConfirmListener @@ -266,34 +266,6 @@ public class Resulting extends Invoker.Unit protected Exception _error; - protected static final ThreadLocal INV_EX = - new ThreadLocal() { - @Override protected ReusableInvocationException initialValue () { - return new ReusableInvocationException(); - } - }; - - protected static class ReusableInvocationException extends InvocationException - { - public ReusableInvocationException () - { - super(""); - } - - public ReusableInvocationException setMessage (String msg) - { - _msg = msg; - return this; - } - - @Override public String getMessage () - { - return _msg; - } - - protected String _msg; - } - protected static final ThreadLocal STOP = new ThreadLocal() { @Override protected StopException initialValue () {