Skip to content

Commit 4eefd29

Browse files
committed
Remove not needed properties
1 parent 823b221 commit 4eefd29

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

flixopt/elements.py

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -486,20 +486,6 @@ def size_is_fixed(self) -> bool:
486486
# Wenn kein InvestParameters existiert --> True; Wenn Investparameter, den Wert davon nehmen
487487
return False if (isinstance(self.size, InvestParameters) and self.size.fixed_size is None) else True
488488

489-
@property
490-
def invest_is_optional(self) -> bool:
491-
# Wenn kein InvestParameters existiert: # Investment ist nicht optional -> Keine Variable --> False
492-
warnings.warn(
493-
"The 'invest_is_optional' property is deprecated. Use 'invest_is_mandatory' instead.",
494-
DeprecationWarning,
495-
stacklevel=2,
496-
)
497-
return False if (isinstance(self.size, InvestParameters) and self.size.mandatory) else True
498-
499-
@property
500-
def invest_is_mandatory(self) -> bool:
501-
return False if (isinstance(self.size, InvestParameters) and not self.size.mandatory) else True
502-
503489

504490
class FlowModel(ElementModel):
505491
def __init__(self, model: SystemModel, element: Flow):

0 commit comments

Comments
 (0)