From 0893dfa895c2bf389c59515ef95dd845cbf86eb0 Mon Sep 17 00:00:00 2001 From: Will McGugan Date: Tue, 27 Aug 2024 15:23:43 +0100 Subject: [PATCH] remove superfluous copy --- src/textual/binding.py | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/textual/binding.py b/src/textual/binding.py index 7c0fe70138..5fe58cb487 100644 --- a/src/textual/binding.py +++ b/src/textual/binding.py @@ -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.