Drop unused methods from EvaluationSession.
Having unused methods is confusing.
This commit is contained in:
parent
af212ca92e
commit
487df639e5
|
|
@ -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) {
|
||||
|
|
|
|||
|
|
@ -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> {
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue