Skip to content

Commit 55d7d66

Browse files
committed
refactor: remove unnecessary singleton pattern in main.py
1 parent abc1d61 commit 55d7d66

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/mastermind/main/main.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,6 @@
1515
class MainUI:
1616
"""Class to handle the user menu interface."""
1717

18-
def __new__(cls):
19-
if not hasattr(cls, "instance"):
20-
cls.instance = super(MainUI, cls).__new__(cls)
21-
return cls.instance
22-
2318
def main_menu(self) -> bool:
2419
"""
2520
Display the main menu and handle user input.

0 commit comments

Comments
 (0)