summaryrefslogtreecommitdiffstats
path: root/parser.l
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2011-11-30 14:19:03 -0800
committerKaz Kylheku <kaz@kylheku.com>2011-11-30 14:19:03 -0800
commitc6d7aca5df641e419f5b74d14b463901d63fc1f2 (patch)
tree4dd4411f919fc6a214242d0aee89e887b4f5e228 /parser.l
parentb3ee9cdddd521d0ee87a114269fc683f93d215e0 (diff)
downloadtxr-c6d7aca5df641e419f5b74d14b463901d63fc1f2.tar.gz
txr-c6d7aca5df641e419f5b74d14b463901d63fc1f2.tar.bz2
txr-c6d7aca5df641e419f5b74d14b463901d63fc1f2.zip
Removing useless hash table.
* parser.h (ln_to_forms_hash): Declaration removed. * parser.l (ln_to_forms_hash): Variable removed. (parse_init): Initialization and protection of ln_to_forms_hash removed. * parser.y (rl): Update of ln_to_forms_hash removed. * txr.1:
Diffstat (limited to 'parser.l')
-rw-r--r--parser.l4
1 files changed, 1 insertions, 3 deletions
diff --git a/parser.l b/parser.l
index a4649473..cee0d834 100644
--- a/parser.l
+++ b/parser.l
@@ -68,7 +68,6 @@ int opt_loglevel = 1; /* 0 - quiet; 1 - normal; 2 - verbose */
int errors;
val form_to_ln_hash;
-val ln_to_forms_hash;
static val prepared_error_message;
@@ -649,8 +648,7 @@ val source_loc(val form)
void parse_init(void)
{
protect(&yyin_stream, &prepared_error_message,
- &form_to_ln_hash, &ln_to_forms_hash, (val *) 0);
+ &form_to_ln_hash, (val *) 0);
form_to_ln_hash = make_hash(t, nil, nil);
- ln_to_forms_hash = make_hash(nil, t, nil);
}