@@ -960,13 +960,8 @@ def add_component(self, name, val):
960
960
% (name , type (val ), self .name , type (getattr (self , name )))
961
961
)
962
962
#
963
- # Skip the add_component() logic if this is a
964
- # component type that is suppressed.
965
- #
966
963
_component = self .parent_component ()
967
964
_type = val .ctype
968
- if _type in _component ._suppress_ctypes :
969
- return
970
965
#
971
966
# Raise an exception if the component already has a parent.
972
967
#
@@ -1048,12 +1043,6 @@ def add_component(self, name, val):
1048
1043
else :
1049
1044
self ._ctypes [_type ] = [_new_idx , _new_idx , 1 ]
1050
1045
#
1051
- # Propagate properties to sub-blocks:
1052
- # suppressed ctypes
1053
- #
1054
- if _type is Block :
1055
- val ._suppress_ctypes |= _component ._suppress_ctypes
1056
- #
1057
1046
# Error, for disabled support implicit rule names
1058
1047
#
1059
1048
if '_rule' in val .__dict__ and val ._rule is None :
@@ -2029,7 +2018,6 @@ def __init__(
2029
2018
2030
2019
def __init__ (self , * args , ** kwargs ):
2031
2020
"""Constructor"""
2032
- self ._suppress_ctypes = set ()
2033
2021
_rule = kwargs .pop ('rule' , None )
2034
2022
_options = kwargs .pop ('options' , None )
2035
2023
# As concrete applies to the Block at declaration time, we will
0 commit comments