Skip to content

Commit

Permalink
remove superfluous copy
Browse files Browse the repository at this point in the history
  • Loading branch information
willmcgugan committed Aug 27, 2024
1 parent d350da3 commit 0893dfa
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions src/textual/binding.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,16 +132,6 @@ def make_bindings(bindings: Iterable[BindingType]) -> Iterable[Binding]:
for binding in make_bindings(bindings or {}):
self.key_to_bindings.setdefault(binding.key, []).append(binding)

def copy(self) -> BindingsMap:
"""Create a copy of this bindings map.
Returns:
A copy.
"""
bindings_map = BindingsMap()
bindings_map.key_to_bindings = self.key_to_bindings.copy()
return bindings_map

def _add_binding(self, binding: Binding) -> None:
"""Add a new binding.
Expand Down

0 comments on commit 0893dfa

Please sign in to comment.