summaryrefslogtreecommitdiffstats
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
commit41df7940c9b3f2dab508529e1a27f41fea6dc4e9 (patch)
treea3a015c25017e4215eb8a408cb8a3802960053ff
parent428b4c73e7b2f3d11311463990251499ac424218 (diff)
downloadtxr-41df7940c9b3f2dab508529e1a27f41fea6dc4e9.tar.gz
txr-41df7940c9b3f2dab508529e1a27f41fea6dc4e9.tar.bz2
txr-41df7940c9b3f2dab508529e1a27f41fea6dc4e9.zip
struct: wasteful double creation of slot_type_hash.
* struct.c (struct_init): Delete uselessly repeated statement that generates a garbage hash object.
-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);