Skip to content

Commit

Permalink
superfluous function
Browse files Browse the repository at this point in the history
  • Loading branch information
willmcgugan committed Dec 10, 2023
1 parent 3b04f6c commit b2456cd
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions src/textual/css/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,21 +166,6 @@ class RuleSet:
def __hash__(self):
return id(self)

def has_pseudo_class(self, class_name: str) -> bool:
"""Check if the rule set contains a give pseudo class.
Args:
class_name: Name of a pseudo class.
Returns:
`True` if the pseudo class is supported.
"""
for selector_set in self.selector_set:
for selector in selector_set.selectors:
if class_name in selector.pseudo_classes:
return True
return False

@classmethod
def _selector_to_css(cls, selectors: list[Selector]) -> str:
tokens: list[str] = []
Expand Down

0 comments on commit b2456cd

Please sign in to comment.