Drop deprecated stuff from conreactor API.

This commit is contained in:
Fedor Isakov 2019-05-05 14:30:19 +02:00
parent 7e7dba455e
commit fa2476fabb
5 changed files with 1 additions and 64 deletions

View File

@ -1,35 +0,0 @@
/*
* Copyright 2014-2019 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package jetbrains.mps.logic.reactor.evaluation;
import jetbrains.mps.logic.reactor.program.Rule;
/**
* @author Fedor Isakov
*/
@Deprecated
public interface EvaluationFeedbackHandler {
/**
* @deprecated moved elsewhere
*/
@Deprecated
default boolean handleFeedback(Rule rule, EvaluationFeedback feedback){
throw new UnsupportedOperationException();
}
}

View File

@ -24,13 +24,7 @@ import jetbrains.mps.logic.reactor.core.EvaluationFailure;
public interface EvaluationResult {
public StoreView storeView();
/**
* @deprecated use {@link EvaluationResult#feedback()}
*/
@Deprecated
default EvaluationFailure failure() { throw new UnsupportedOperationException(); }
public EvaluationFeedback feedback();
}

View File

@ -90,19 +90,8 @@ public abstract class EvaluationSession {
public abstract Config withStoreView(StoreView storeView);
@Deprecated
public Config withFeedbackHandler(EvaluationFeedbackHandler handler) {
throw new UnsupportedOperationException();
}
public abstract EvaluationResult start(Supervisor supervisor);
/**
* @deprecated use {@link Config#start(Supervisor)}
*/
@Deprecated
public EvaluationResult start() { throw new UnsupportedOperationException(); }
}
protected static void setBackend(EvaluationSession.Backend<? extends EvaluationSession> backend) {

View File

@ -50,8 +50,5 @@ public interface EvaluationTrace {
default void ask(boolean result, PredicateInvocation invocation) {}
@Deprecated
default void failure(EvaluationFailure failure) {}
default void feedback(EvaluationFeedback feedback) {}
}

View File

@ -34,12 +34,4 @@ public abstract class Program {
public abstract Iterable<Handler> handlers();
/**
* @deprecated use {@link jetbrains.mps.logic.reactor.evaluation.Supervisor}
*/
@Deprecated
public List<?> instantiateArguments(List<?> arguments, LogicalContext logicalContext, InvocationContext invocationContext) {
throw new UnsupportedOperationException();
}
}