repo.or.cz
/
ruby.git
/
commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
raw
|
patch
|
inline
|
side by side
(parent:
419d322
)
Remove unused weakmap field in wmap_foreach
author
Peter Zhu
<
[email protected]
>
Tue, 20 Aug 2024 14:47:01 +0000
(20 10:47 -0400)
committer
Peter Zhu
<
[email protected]
>
Wed, 21 Aug 2024 12:43:59 +0000
(21 08:43 -0400)
weakmap.c
patch
|
blob
|
blame
|
history
diff --git
a/weakmap.c
b/weakmap.c
index
8939056
..
459ee6f
100644
(file)
--- a/
weakmap.c
+++ b/
weakmap.c
@@
-186,7
+186,6
@@
wmap_allocate(VALUE klass)
}
struct wmap_foreach_data {
- struct weakmap *w;
void (*func)(VALUE, VALUE, st_data_t);
st_data_t arg;
};
@@
-215,7
+214,6
@@
static void
wmap_foreach(struct weakmap *w, void (*func)(VALUE, VALUE, st_data_t), st_data_t arg)
{
struct wmap_foreach_data foreach_data = {
- .w = w,
.func = func,
.arg = arg,
};