From 2e650535356dd29b0196ec7e51a3093bd2d700a8 Mon Sep 17 00:00:00 2001 From: Ulf Magnusson Date: Tue, 11 Dec 2012 13:38:23 +0100 Subject: Remove calc_default_value(). It's a weird and probably pretty useless API. --- kconfiglib.py | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'kconfiglib.py') diff --git a/kconfiglib.py b/kconfiglib.py index 9ec257a..1c33ac9 100644 --- a/kconfiglib.py +++ b/kconfiglib.py @@ -2427,19 +2427,6 @@ class Symbol(Item, _HasVisibility): self.cached_value = new_val return new_val - def calc_default_value(self): - """Calculates the value the symbol would get purely from defaults, - ignoring visibility (assumed to be "y"), reverse dependencies - (selects), user values and dependencies from enclosing menus and if's. - Returns None if no default would kick in.""" - for (val_expr, cond_expr) in self.orig_def_exprs: - cond_eval = self.config._eval_expr(cond_expr) - - if cond_eval != "n": - return self.config._eval_expr(val_expr) - - return None - def set_value(self, v): """Sets the (user) value of the symbol. Equal in effect to assigning the value to the symbol within a .config file. Use -- cgit v1.2.3