Skip to content

Commit 769be61

Browse files
committed
Remove dead code
The statements removed here would remove component data subscriptions for components that come after a constant in Coalesce's parameter list. However, such subscriptions are never created. We only add subscriptions, one at a time, until data is available, which is always the case when we reach a constant in the parameter list. Signed-off-by: Simon Völcker <simon.voelcker@frequenz.com>
1 parent 35b61ba commit 769be61

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

src/frequenz/sdk/timeseries/formulas/_functions.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -140,9 +140,6 @@ async def __call__(self) -> Sample[QuantityT] | QuantityT | None:
140140
return arg
141141
ts = timestamp
142142
case Quantity():
143-
# Found a non-None value, unsubscribe from subsequent params
144-
if ctr < self.num_subscribed:
145-
await self._unsubscribe_last_param()
146143
if ts is not None:
147144
return Sample(timestamp=ts, value=arg)
148145
return arg

0 commit comments

Comments
 (0)