From 93daaa1a2ca58f736b14e5570a11ea3326c3f043 Mon Sep 17 00:00:00 2001 From: justine Date: Thu, 2 Jan 2025 12:55:51 +0100 Subject: [PATCH] Removed useless methods --- aliasmenu.py | 23 ----------------------- 1 file changed, 23 deletions(-) diff --git a/aliasmenu.py b/aliasmenu.py index 3e66951..ec55447 100755 --- a/aliasmenu.py +++ b/aliasmenu.py @@ -21,29 +21,6 @@ class Bindings: for i, (name, command) in enumerate(bindings_dict.items()): self.bindings[int(i)] = (name, command) - def get_name(self, index): - """ - Get the name associated with a given index. - - :param index: The index of the binding to retrieve. - :return: The name associated with the given index. - :raises IndexError: If the index is out of range. - """ - if not (0 <= index < len(self.bindings)): - raise IndexError("Index out of range") - return self.bindings[index][0] - - def get_command(self, index): - """ - Get the command associated with a given index. - - :param index: The index of the binding to retrieve. - :return: The command associated with the given index. - :raises IndexError: If the index is out of range. - """ - if not (0 <= index < len(self.bindings)): - raise IndexError("Index out of range") - return self.bindings[index][1] def __len__(self): """