Drop unused methods from EvaluationSession.

Having unused methods is confusing.
This commit is contained in:
Fedor Isakov 2019-09-10 13:17:34 +02:00
parent af212ca92e
commit 487df639e5
3 changed files with 1 additions and 13 deletions

View File

@ -38,10 +38,6 @@ internal class EvaluationSessionImpl private constructor (
lateinit var controller: ControllerImpl
override fun program(): Program = program
override fun supervisor(): Supervisor = supervisor
@Suppress("UNCHECKED_CAST")
override fun <T : Any> parameter(key: ParameterKey<T>): T? = params ?.get(key) as T
@ -50,7 +46,7 @@ internal class EvaluationSessionImpl private constructor (
token: SessionToken?, rulesDiff: RulesDiff, ispec: IncrementalProgramSpec
) : FeedbackStatus {
val ruleIndex = RuleIndex(program().handlers())
val ruleIndex = RuleIndex(program.handlers())
val dispatcher = Dispatcher(ruleIndex)
if (ispec is IncrementalProgramSpec.NonIncrSpec || token == null) {

View File

@ -49,10 +49,6 @@ public abstract class EvaluationSession {
return ourBackend.createConfig(program);
}
public abstract Program program();
public abstract Supervisor supervisor();
public abstract <T> T parameter(ParameterKey<T> key);
public static class ParameterKey<T> {

View File

@ -35,10 +35,6 @@ class TestController {
private class MockSession(val program: Program, val supervisor: Supervisor) : EvaluationSession()
{
lateinit var controller: Controller
override fun program(): Program = program
override fun supervisor(): Supervisor = supervisor
override fun <T : Any?> parameter(key: ParameterKey<T>?): T = TODO()