summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlf Magnusson <ulfalizer@gmail.com>2012-12-11 13:38:23 +0100
committerUlf Magnusson <ulfalizer@gmail.com>2012-12-11 13:38:23 +0100
commit2e650535356dd29b0196ec7e51a3093bd2d700a8 (patch)
tree5c5c0bf1872e5dff256c2e3c521b8c703713e8bb
parenta55e3d29246cb9e480e36c925b268892f29e8f98 (diff)
Remove calc_default_value().
It's a weird and probably pretty useless API.
-rw-r--r--kconfiglib.py13
-rw-r--r--kconfigtest.py1
2 files changed, 0 insertions, 14 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
diff --git a/kconfigtest.py b/kconfigtest.py
index 6cbcb2d..d448d17 100644
--- a/kconfigtest.py
+++ b/kconfigtest.py
@@ -792,7 +792,6 @@ def test_call_all(conf):
for s in conf.get_symbols():
s.reset()
s.calc_value()
- s.calc_default_value()
s.get_user_value()
s.get_name()
s.get_upper_bound()