aboutsummaryrefslogtreecommitdiffstats
path: root/st.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-03-31 01:13:26 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-03-31 01:13:26 +0000
commit94d0221df4c20cbb3084cc412d98cf94127731cb (patch)
tree9ee38531dfaa1138d7cb00d9b63efef2a3172f02 /st.c
parent44e6f5a1bb3eb37d37d9d8e14e970fa05e1a0724 (diff)
downloadruby-94d0221df4c20cbb3084cc412d98cf94127731cb.tar.gz
* st.c (st_foreach_check, st_foreach): remove ancient check. This
check are from initial ordered hash commit when first entry were created with entry->fore = entry->back = entry. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35189 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'st.c')
-rw-r--r--st.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/st.c b/st.c
index e46fcaf268..91fcb7bc7a 100644
--- a/st.c
+++ b/st.c
@@ -984,7 +984,6 @@ st_foreach_check(st_table *table, int (*func)(ANYARGS), st_data_t arg, st_data_t
remove_entry(table, ptr);
ptr->key = ptr->record = never;
ptr->hash = 0;
- if (ptr == tmp) return 0;
ptr = tmp;
break;
}
@@ -1052,7 +1051,6 @@ st_foreach(st_table *table, int (*func)(ANYARGS), st_data_t arg)
*last = ptr->next;
remove_entry(table, ptr);
st_free_entry(ptr);
- if (ptr == tmp) return 0;
ptr = tmp;
break;
}