diff options
| author | Fabian Mastenbroek <mail.fabianm@gmail.com> | 2018-02-19 15:12:16 +0100 |
|---|---|---|
| committer | Fabian Mastenbroek <mail.fabianm@gmail.com> | 2018-02-19 15:13:51 +0100 |
| commit | 86dc826db4cd91b5a6875d9ecdd64c9238d7b95c (patch) | |
| tree | e76afd3b1d5673a29d71eedb9d373396976d84bd /opendc-kernel-omega | |
| parent | 59247a4f7a2dc948b3a63ff185c64922eb4334ea (diff) | |
refactor(#18): Simplify Context interface
This change simplifies the `Context` interface to reduce the amount of
methods required to implement by implementors.
Diffstat (limited to 'opendc-kernel-omega')
| -rw-r--r-- | opendc-kernel-omega/src/main/kotlin/com/atlarge/opendc/omega/OmegaSimulation.kt | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/opendc-kernel-omega/src/main/kotlin/com/atlarge/opendc/omega/OmegaSimulation.kt b/opendc-kernel-omega/src/main/kotlin/com/atlarge/opendc/omega/OmegaSimulation.kt index 4d94bf9e..532a033a 100644 --- a/opendc-kernel-omega/src/main/kotlin/com/atlarge/opendc/omega/OmegaSimulation.kt +++ b/opendc-kernel-omega/src/main/kotlin/com/atlarge/opendc/omega/OmegaSimulation.kt @@ -327,8 +327,6 @@ internal class OmegaSimulation<M>(bootstrap: Bootstrap<M>) : Simulation<M>, Boot } } - override suspend fun Entity<*, *>.send(msg: Any, delay: Duration) = send(msg, process, delay) - override suspend fun Entity<*, *>.send(msg: Any, sender: Entity<*, *>, delay: Duration) = schedule(prepare(msg, this, sender, delay)) |
