summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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()