remove unused code
This commit is contained in:
parent
73745be440
commit
1e880f4bc6
|
@ -453,12 +453,9 @@ class Option(BaseOption):
|
||||||
for index, val in enumerate(value):
|
for index, val in enumerate(value):
|
||||||
do_validation(val, index)
|
do_validation(val, index)
|
||||||
|
|
||||||
def impl_getdefault(self, default_multi=False):
|
def impl_getdefault(self):
|
||||||
"accessing the default value"
|
"accessing the default value"
|
||||||
if not default_multi or not self.impl_is_multi():
|
return self._default
|
||||||
return self._default
|
|
||||||
else:
|
|
||||||
return self.getdefault_multi()
|
|
||||||
|
|
||||||
def impl_getdefault_multi(self):
|
def impl_getdefault_multi(self):
|
||||||
"accessing the default value for a multi"
|
"accessing the default value for a multi"
|
||||||
|
@ -1256,7 +1253,6 @@ class OptionDescription(BaseOption):
|
||||||
self._group_type = group_type
|
self._group_type = group_type
|
||||||
if isinstance(group_type, groups.MasterGroupType):
|
if isinstance(group_type, groups.MasterGroupType):
|
||||||
#if master (same name has group) is set
|
#if master (same name has group) is set
|
||||||
identical_master_child_name = False
|
|
||||||
#for collect all slaves
|
#for collect all slaves
|
||||||
slaves = []
|
slaves = []
|
||||||
master = None
|
master = None
|
||||||
|
@ -1273,7 +1269,6 @@ class OptionDescription(BaseOption):
|
||||||
": this option is not a multi"
|
": this option is not a multi"
|
||||||
"").format(child._name, self._name))
|
"").format(child._name, self._name))
|
||||||
if child._name == self._name:
|
if child._name == self._name:
|
||||||
identical_master_child_name = True
|
|
||||||
child._multitype = multitypes.master
|
child._multitype = multitypes.master
|
||||||
master = child
|
master = child
|
||||||
else:
|
else:
|
||||||
|
@ -1294,9 +1289,6 @@ class OptionDescription(BaseOption):
|
||||||
if child != master:
|
if child != master:
|
||||||
child._master_slaves = master
|
child._master_slaves = master
|
||||||
child._multitype = multitypes.slave
|
child._multitype = multitypes.slave
|
||||||
if not identical_master_child_name:
|
|
||||||
raise ValueError(_("no child has same name has master group"
|
|
||||||
" for: {0}").format(self._name))
|
|
||||||
else:
|
else:
|
||||||
raise ValueError(_('group_type: {0}'
|
raise ValueError(_('group_type: {0}'
|
||||||
' not allowed').format(group_type))
|
' not allowed').format(group_type))
|
||||||
|
|
Loading…
Reference in New Issue