Skip to content

Commit f32d9f4

Browse files
committed
Remove unused sp_size arg passed through walk_vec{1,2} in shape code.
1 parent dc6c3a8 commit f32d9f4

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

src/rt/rust_box_annihilator.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ class annihilator : public shape::data<annihilator,shape::ptr> {
4343
: shape::data<annihilator,shape::ptr>(in_task, in_align, in_sp,
4444
in_params, in_tables, in_data) {}
4545

46-
void walk_vec2(bool is_pod, uint16_t sp_size) {
46+
void walk_vec2(bool is_pod) {
4747
void *vec = shape::get_dp<void *>(dp);
4848
walk_vec2(is_pod, get_vec_data_range(dp));
4949
task->kernel->free(vec);

src/rt/rust_cc.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ class irc : public shape::data<irc,shape::ptr> {
7373
in_tables, in_data),
7474
ircs(in_ircs) {}
7575

76-
void walk_vec2(bool is_pod, uint16_t sp_size) {
76+
void walk_vec2(bool is_pod) {
7777
if (is_pod || shape::get_dp<void *>(dp) == NULL)
7878
return; // There can't be any outbound pointers from this.
7979

@@ -305,7 +305,7 @@ class mark : public shape::data<mark,shape::ptr> {
305305
in_tables, in_data),
306306
marked(in_marked) {}
307307

308-
void walk_vec2(bool is_pod, uint16_t sp_size) {
308+
void walk_vec2(bool is_pod) {
309309
if (is_pod || shape::get_dp<void *>(dp) == NULL)
310310
return; // There can't be any outbound pointers from this.
311311

src/rt/rust_shape.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ class cmp : public data<cmp,ptr_pair> {
337337
in_dp),
338338
result(0) {}
339339

340-
void walk_vec2(bool is_pod, uint16_t sp_size) {
340+
void walk_vec2(bool is_pod) {
341341
walk_vec2(is_pod, get_vec_data_range(dp));
342342
}
343343

src/rt/rust_shape.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -429,7 +429,7 @@ ctxt<T>::walk_vec0() {
429429
uint16_t sp_size = get_u16_bump(sp);
430430
const uint8_t *end_sp = sp + sp_size;
431431

432-
static_cast<T *>(this)->walk_vec1(is_pod, sp_size);
432+
static_cast<T *>(this)->walk_vec1(is_pod);
433433

434434
sp = end_sp;
435435
}
@@ -569,7 +569,7 @@ class print : public ctxt<print> {
569569
const type_param *params, const uint8_t *end_sp);
570570
void walk_var1(uint8_t param);
571571

572-
void walk_vec1(bool is_pod, uint16_t sp_size) {
572+
void walk_vec1(bool is_pod) {
573573
DPRINT("vec<"); walk(); DPRINT(">");
574574
}
575575
void walk_uniq1() {
@@ -645,7 +645,7 @@ class size_of : public ctxt<size_of> {
645645
void walk_tydesc1(char) { sa.set(sizeof(void *), sizeof(void *)); }
646646
void walk_closure1();
647647

648-
void walk_vec1(bool is_pod, uint16_t sp_size) {
648+
void walk_vec1(bool is_pod) {
649649
sa.set(sizeof(void *), sizeof(void *));
650650
}
651651

@@ -903,8 +903,8 @@ class data : public ctxt< data<T,U> > {
903903
static_cast<T *>(this)->walk_struct2(end_sp);
904904
}
905905

906-
void walk_vec1(bool is_pod, uint16_t sp_size) {
907-
DATA_SIMPLE(void *, walk_vec2(is_pod, sp_size));
906+
void walk_vec1(bool is_pod) {
907+
DATA_SIMPLE(void *, walk_vec2(is_pod));
908908
}
909909

910910
void walk_box1() { DATA_SIMPLE(void *, walk_box2()); }
@@ -1102,7 +1102,7 @@ class log : public data<log,ptr> {
11021102
out(other.out),
11031103
prefix("") {}
11041104

1105-
void walk_vec2(bool is_pod, uint16_t sp_size) {
1105+
void walk_vec2(bool is_pod) {
11061106
if (!get_dp<void *>(dp))
11071107
out << prefix << "(null)";
11081108
else

0 commit comments

Comments
 (0)