Skip to content

Commit 1021df8

Browse files
authored
Core: remove now unused stuff in Generate.py (#3035)
1 parent 569c37c commit 1021df8

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

Generate.py

-8
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
from Main import main as ERmain
2222
from settings import get_settings
2323
from Utils import parse_yamls, version_tuple, __version__, tuplize_version
24-
from worlds.alttp import Options as LttPOptions
2524
from worlds.alttp.EntranceRandomizer import parse_arguments
2625
from worlds.alttp.Text import TextTable
2726
from worlds.AutoWorld import AutoWorldRegister
@@ -311,13 +310,6 @@ def handle_name(name: str, player: int, name_counter: Counter):
311310
return new_name
312311

313312

314-
def prefer_int(input_data: str) -> Union[str, int]:
315-
try:
316-
return int(input_data)
317-
except:
318-
return input_data
319-
320-
321313
def roll_percentage(percentage: Union[int, float]) -> bool:
322314
"""Roll a percentage chance.
323315
percentage is expected to be in range [0, 100]"""

0 commit comments

Comments
 (0)