diff options
| author | Fabian Mastenbroek <mail.fabianm@gmail.com> | 2021-03-02 21:20:41 +0100 |
|---|---|---|
| committer | Fabian Mastenbroek <mail.fabianm@gmail.com> | 2021-03-07 16:13:15 +0100 |
| commit | 2ba5fc1247472d026f10ad5cf738dcb7e078a9ee (patch) | |
| tree | 11766c4f46938ad528148b58cef9c1dbaaae0777 /simulator | |
| parent | e85a11645a2262e2e6fd1e3570ad001eb805c85f (diff) | |
compute: Remove ServiceRegistry fields
This change removes the use of ServiceRegistry in the OpenDC compute
module. It was not actually being used by any of the code and we are
moving to another interface in the future.
Diffstat (limited to 'simulator')
2 files changed, 0 insertions, 8 deletions
diff --git a/simulator/opendc-compute/opendc-compute-core/src/main/kotlin/org/opendc/compute/core/Server.kt b/simulator/opendc-compute/opendc-compute-core/src/main/kotlin/org/opendc/compute/core/Server.kt index 948f622f..1fb5679a 100644 --- a/simulator/opendc-compute/opendc-compute-core/src/main/kotlin/org/opendc/compute/core/Server.kt +++ b/simulator/opendc-compute/opendc-compute-core/src/main/kotlin/org/opendc/compute/core/Server.kt @@ -26,7 +26,6 @@ import kotlinx.coroutines.flow.Flow import org.opendc.compute.core.image.Image import org.opendc.core.resource.Resource import org.opendc.core.resource.TagContainer -import org.opendc.core.services.ServiceRegistry import java.util.UUID /** @@ -64,11 +63,6 @@ public data class Server( public val state: ServerState, /** - * The services published by this server. - */ - public val services: ServiceRegistry, - - /** * The events that are emitted by the server. */ public val events: Flow<ServerEvent> diff --git a/simulator/opendc-compute/opendc-compute-simulator/src/main/kotlin/org/opendc/compute/simulator/SimVirtDriver.kt b/simulator/opendc-compute/opendc-compute-simulator/src/main/kotlin/org/opendc/compute/simulator/SimVirtDriver.kt index d28b2f0d..35d82211 100644 --- a/simulator/opendc-compute/opendc-compute-simulator/src/main/kotlin/org/opendc/compute/simulator/SimVirtDriver.kt +++ b/simulator/opendc-compute/opendc-compute-simulator/src/main/kotlin/org/opendc/compute/simulator/SimVirtDriver.kt @@ -33,7 +33,6 @@ import org.opendc.compute.core.metal.Node import org.opendc.compute.core.virt.HypervisorEvent import org.opendc.compute.core.virt.driver.InsufficientMemoryOnServerException import org.opendc.compute.core.virt.driver.VirtDriver -import org.opendc.core.services.ServiceRegistry import org.opendc.simulator.compute.* import org.opendc.simulator.compute.interference.IMAGE_PERF_INTERFERENCE_MODEL import org.opendc.simulator.compute.interference.PerformanceInterferenceModel @@ -132,7 +131,6 @@ public class SimVirtDriver( flavor, image, ServerState.BUILD, - ServiceRegistry(), events ) availableMemory -= requiredMemory |
