Skip to content

Commit

Permalink
remove auto generate fn def in auto_eq_method
Browse files Browse the repository at this point in the history
  • Loading branch information
yuyi98 committed Jan 20, 2025
1 parent 89bb85c commit 2b3e188
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion vlib/v/gen/c/auto_eq_methods.v
Original file line number Diff line number Diff line change
Expand Up @@ -605,7 +605,6 @@ fn (mut g Gen) gen_interface_equality_fn(left_type ast.Type) string {
left_arg := g.read_field(left_type, '_typ', 'a')
right_arg := g.read_field(left_type, '_typ', 'b')

fn_builder.writeln('${g.static_non_parallel}int v_typeof_interface_idx_${idx_fn}(int sidx); // for auto eq method')
fn_builder.writeln('${g.static_non_parallel}inline bool ${fn_name}_interface_eq(${ptr_styp} a, ${ptr_styp} b) {')
fn_builder.writeln('\tif (${left_arg} == ${right_arg}) {')
fn_builder.writeln('\t\tint idx = v_typeof_interface_idx_${idx_fn}(${left_arg});')
Expand Down

0 comments on commit 2b3e188

Please sign in to comment.