From 189079a9c7cee9e50ae128ed9a9f70ff59abffc2 Mon Sep 17 00:00:00 2001 From: Ross Wilson Date: Tue, 26 Jan 2016 13:58:30 +0700 Subject: [PATCH] Removed unused function --- pyasm/pyasm | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/pyasm/pyasm b/pyasm/pyasm index 5a280a2..f12a7db 100755 --- a/pyasm/pyasm +++ b/pyasm/pyasm @@ -92,25 +92,6 @@ def error(msg): print(msg) sys.exit(10) -def str2int(s): - """Convert string to numeric value. - - s numeric string (decimal or octal) - - Returns the numeric value. - """ - - base = 10 - if s[0] == '0': - base = 8 - - try: - value = int(s, base=base) - except: - return None - - return value - def write_list(code, addr, lnum, line): """Generate one line of listing file.