summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlf Magnusson <ulfalizer@gmail.com>2012-12-09 05:59:09 +0100
committerUlf Magnusson <ulfalizer@gmail.com>2012-12-09 06:01:53 +0100
commit2451030cde8fbac5f8f621b84dd22ba23d121e17 (patch)
tree9b3d47ef7b9071270cf8d2b1ebb53acddb9763d3
parent785def628438469f00d548ee937e7ef74376d3f6 (diff)
Remove get_sibling_symbols/items().
Can easily be had with Choice.get_items(), Menu.get_symbols/items(), and get_top_level_items(), and the interface is getting a bit cluttered. Scream if you were using this. :)
-rw-r--r--kconfiglib.py33
1 files changed, 0 insertions, 33 deletions
diff --git a/kconfiglib.py b/kconfiglib.py
index bdfea15..9479674 100644
--- a/kconfiglib.py
+++ b/kconfiglib.py
@@ -2550,39 +2550,6 @@ class Symbol(Item, _HasVisibility):
representation."""
return self.parent
- def get_sibling_symbols(self, include_self = False):
- """Returns a list containing all symbols that are in the same menu or
- choice statement as the symbol, or that are also at the top level in
- case the symbol is at the top level.
-
- include_self (default: False) -- True if the symbol itself should be
- included in the result, otherwise
- False."""
-
- return [item for item in self.get_sibling_items(include_self)
- if isinstance(item, Symbol)]
-
- def get_sibling_items(self, include_self = False):
- """Returns a list containing all items (symbols, menus, choice
- statements and comments) that are in the same menu or choice statement
- as the symbol, or that are also at the top level in case the symbol is
- at the top level. The items appear in the same order as within the
- configuration.
-
- include_self (default: False) -- True if the symbol itself should be
- included in the result, otherwise
- False."""
-
- if self.parent is None:
- items = self.config.get_top_level_items()
- else:
- items = self.parent.get_items()
-
- if include_self:
- return items
-
- return [item for item in items if item is not self]
-
def get_referenced_symbols(self, refs_from_enclosing = False):
"""Returns the set() of all symbols referenced by this symbol. For
example, the symbol defined by