From 1e880f4bc6f8d325eae252ea6c3ace8c3c463d1c Mon Sep 17 00:00:00 2001 From: Emmanuel Garette Date: Mon, 9 Dec 2013 18:48:44 +0100 Subject: [PATCH] remove unused code --- tiramisu/option.py | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/tiramisu/option.py b/tiramisu/option.py index 09e0dbd..ad99416 100644 --- a/tiramisu/option.py +++ b/tiramisu/option.py @@ -453,12 +453,9 @@ class Option(BaseOption): for index, val in enumerate(value): do_validation(val, index) - def impl_getdefault(self, default_multi=False): + def impl_getdefault(self): "accessing the default value" - if not default_multi or not self.impl_is_multi(): - return self._default - else: - return self.getdefault_multi() + return self._default def impl_getdefault_multi(self): "accessing the default value for a multi" @@ -1256,7 +1253,6 @@ class OptionDescription(BaseOption): self._group_type = group_type if isinstance(group_type, groups.MasterGroupType): #if master (same name has group) is set - identical_master_child_name = False #for collect all slaves slaves = [] master = None @@ -1273,7 +1269,6 @@ class OptionDescription(BaseOption): ": this option is not a multi" "").format(child._name, self._name)) if child._name == self._name: - identical_master_child_name = True child._multitype = multitypes.master master = child else: @@ -1294,9 +1289,6 @@ class OptionDescription(BaseOption): if child != master: child._master_slaves = master 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: raise ValueError(_('group_type: {0}' ' not allowed').format(group_type))