summaryrefslogtreecommitdiffstats
path: root/struct.c
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2020-07-02 06:05:22 -0700
committerKaz Kylheku <kaz@kylheku.com>2020-07-02 06:05:22 -0700
commita344411316164d4acaf645459b63bc9f9562c2cf (patch)
treea3a015c25017e4215eb8a408cb8a3802960053ff /struct.c
parent4e6f86a1ce67142c3f21ac60fdddcbc6fb6c3a22 (diff)
downloadtxr-a344411316164d4acaf645459b63bc9f9562c2cf.tar.gz
txr-a344411316164d4acaf645459b63bc9f9562c2cf.tar.bz2
txr-a344411316164d4acaf645459b63bc9f9562c2cf.zip
struct: wasteful double creation of slot_type_hash.
* struct.c (struct_init): Delete uselessly repeated statement that generates a garbage hash object.
Diffstat (limited to 'struct.c')
-rw-r--r--struct.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/struct.c b/struct.c
index 2da353d6..e8a862a7 100644
--- a/struct.c
+++ b/struct.c
@@ -144,7 +144,6 @@ void struct_init(void)
struct_type_hash = make_hash(nil, nil, nil);
slot_hash = make_hash(nil, nil, t);
slot_type_hash = make_hash(nil, nil, nil);
- slot_type_hash = make_hash(nil, nil, nil);
static_slot_type_hash = make_hash(nil, nil, nil);
struct_type_finalize_f = func_n1(struct_type_finalize);