diff options
| author | Ulf Magnusson <ulfalizer@gmail.com> | 2012-12-11 13:38:23 +0100 |
|---|---|---|
| committer | Ulf Magnusson <ulfalizer@gmail.com> | 2012-12-11 13:38:23 +0100 |
| commit | 2e650535356dd29b0196ec7e51a3093bd2d700a8 (patch) | |
| tree | 5c5c0bf1872e5dff256c2e3c521b8c703713e8bb /kconfiglib.py | |
| parent | a55e3d29246cb9e480e36c925b268892f29e8f98 (diff) | |
Remove calc_default_value().
It's a weird and probably pretty useless API.
Diffstat (limited to 'kconfiglib.py')
| -rw-r--r-- | kconfiglib.py | 13 |
1 files changed, 0 insertions, 13 deletions
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 |
