remove dead code
This commit is contained in:
@ -164,8 +164,7 @@ class CacheOptionDescription(BaseOption):
|
||||
return False
|
||||
|
||||
def impl_build_force_store_values(self,
|
||||
context,
|
||||
force_store_values):
|
||||
context):
|
||||
value_setted = False
|
||||
values = context.cfgimpl_get_values()
|
||||
for subpath, option in self._cache_force_store_values:
|
||||
@ -176,9 +175,7 @@ class CacheOptionDescription(BaseOption):
|
||||
if option._is_subdyn():
|
||||
raise ConfigError(_('a dynoption ({0}) cannot have '
|
||||
'force_store_value property').format(subpath))
|
||||
if force_store_values is False:
|
||||
raise Exception('ok ca existe ...')
|
||||
if force_store_values and not values._p_.hasvalue(subpath):
|
||||
if not values._p_.hasvalue(subpath):
|
||||
config_bag = ConfigBag(config=context, option=option)
|
||||
value = values.getvalue(subpath,
|
||||
None,
|
||||
|
Reference in New Issue
Block a user