Skip to content

Commit 20ea844

Browse files
committed
Remove DependencyManager as it was no longer used
1 parent c7c56c9 commit 20ea844

17 files changed

+1226
-2485
lines changed

src/benches_common.rs

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ use crate::core::OutputHandler;
1313
use crate::core::Runnable;
1414
use crate::core::Runtime;
1515
use crate::core::Semantics;
16-
use crate::dep_manage::interface::DependencyManager;
1716
use crate::io::testing::null_output_handler::{LimitedNullOutputHandler, NullOutputHandler};
1817
use crate::lang::dynamic_lola::type_checker::TypedLOLASpecification;
1918
use crate::runtime::RuntimeBuilder;
@@ -28,7 +27,6 @@ pub async fn monitor_runtime_outputs(
2827
executor: Rc<LocalExecutor<'static>>,
2928
spec: LOLASpecification,
3029
input_streams: BTreeMap<VarName, OutputStream<Value>>,
31-
dep_manager: DependencyManager,
3230
output_limit: Option<usize>,
3331
) {
3432
let output_handler: Box<dyn OutputHandler<Val = Value>> = match output_limit {
@@ -50,7 +48,6 @@ pub async fn monitor_runtime_outputs(
5048
.model(spec)
5149
.output(output_handler)
5250
.input(Box::new(input_streams))
53-
.dependencies(dep_manager)
5451
.build();
5552
monitor.run().await.expect("Error running monitor");
5653
}
@@ -59,7 +56,6 @@ pub async fn monitor_outputs_untyped_async_limited(
5956
executor: Rc<LocalExecutor<'static>>,
6057
spec: LOLASpecification,
6158
input_streams: BTreeMap<VarName, OutputStream<Value>>,
62-
dep_manager: DependencyManager,
6359
limit: usize,
6460
) {
6561
monitor_runtime_outputs(
@@ -68,7 +64,6 @@ pub async fn monitor_outputs_untyped_async_limited(
6864
executor,
6965
spec,
7066
input_streams,
71-
dep_manager,
7267
Some(limit),
7368
)
7469
.await;
@@ -78,15 +73,13 @@ pub async fn monitor_outputs_untyped_async(
7873
executor: Rc<LocalExecutor<'static>>,
7974
spec: LOLASpecification,
8075
input_streams: BTreeMap<VarName, OutputStream<Value>>,
81-
dep_manager: DependencyManager,
8276
) {
8377
monitor_runtime_outputs(
8478
Runtime::Async,
8579
Semantics::Untimed,
8680
executor,
8781
spec,
8882
input_streams,
89-
dep_manager,
9083
None,
9184
)
9285
.await;
@@ -96,7 +89,6 @@ pub async fn monitor_outputs_typed_async(
9689
executor: Rc<LocalExecutor<'static>>,
9790
spec: TypedLOLASpecification,
9891
input_streams: BTreeMap<VarName, OutputStream<Value>>,
99-
dep_manager: DependencyManager,
10092
) {
10193
// Currently cannot be deduplicated since it includes the type
10294
// checking
@@ -115,7 +107,6 @@ pub async fn monitor_outputs_typed_async(
115107
.model(spec.clone())
116108
.input(Box::new(input_streams))
117109
.output(output_handler)
118-
.dependencies(dep_manager)
119110
.build();
120111
async_monitor.run().await.expect("Error running monitor");
121112
}

src/core/interfaces.rs

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ use clap::ValueEnum;
55
use futures::future::LocalBoxFuture;
66
use smol::LocalExecutor;
77

8-
use crate::{dep_manage::interface::DependencyManager, io::mqtt::MQTTLocalityReceiver};
8+
use crate::io::mqtt::MQTTLocalityReceiver;
99

1010
use super::{StreamData, VarName};
1111

@@ -220,19 +220,6 @@ pub trait AbstractMonitorBuilder<M, V: StreamData> {
220220
}
221221
}
222222

223-
fn dependencies(self, dependencies: DependencyManager) -> Self;
224-
225-
fn maybe_dependencies(self, dependencies: Option<DependencyManager>) -> Self
226-
where
227-
Self: Sized,
228-
{
229-
if let Some(dependencies) = dependencies {
230-
self.dependencies(dependencies)
231-
} else {
232-
self
233-
}
234-
}
235-
236223
fn mqtt_reconfig_provider(self, provider: MQTTLocalityReceiver) -> Self;
237224

238225
fn maybe_mqtt_reconfig_provider(self, provider: Option<MQTTLocalityReceiver>) -> Self

src/dep_manage/empty.rs

Lines changed: 0 additions & 45 deletions
This file was deleted.

0 commit comments

Comments
 (0)