From 48b2237b820fdf0347ad65d31305eeffdea97696 Mon Sep 17 00:00:00 2001 From: Bryan Bishop Date: Wed, 6 Jun 2012 20:43:02 -0500 Subject: [PATCH] remove some code cruft from gbz80disasm --- extras/gbz80disasm.py | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/extras/gbz80disasm.py b/extras/gbz80disasm.py index b7b2929da..6ab870a23 100644 --- a/extras/gbz80disasm.py +++ b/extras/gbz80disasm.py @@ -10,13 +10,6 @@ from romstr import RomStr spacing = "\t" -# this was originally for renaming freeze maps for a unique name -def random_hash(): - available_chars = string.hexdigits[:16] - return ''.join( - random.choice(available_chars) - for dummy in xrange(5)) - def load_rom(filename="../baserom.gbc"): """loads bytes into memory""" global rom @@ -599,9 +592,6 @@ def find_label(local_address, bank_id=0): return label_entry["label"] return None -def random_asm_label(): - return ".ASM_" + random_hash() - def asm_label(address): # why using a random value when you can use the eff. address? return ".ASM_" + hex(address)[2:]