Skip to content

Commit 6244484

Browse files
committed
fix warns
1 parent 4961888 commit 6244484

2 files changed

Lines changed: 0 additions & 3 deletions

File tree

cmd/v/v.v

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@ const external_tools = [
6363
'watch',
6464
'where',
6565
]
66-
const list_of_flags_that_allow_duplicates = ['cc', 'd', 'define', 'cf', 'cflags']
6766
const delegated_v2_exe_env = 'V_V2_EXE'
6867

6968
@[unsafe]

vlib/v/gen/c/infix.v

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,6 @@ fn (mut g Gen) infix_expr_eq_op(node ast.InfixExpr) {
165165
right := g.unwrap(right_type)
166166
mut has_defined_eq_operator := false
167167
mut eq_operator_expects_ptr := false
168-
mut eq_method := ast.Fn{}
169168
if m := g.table.find_method(left.sym, '==') {
170169
// For != on generic struct types, check if the == operator was defined on
171170
// a generic parent (receiver type has generic flag or is a different type).
@@ -178,7 +177,6 @@ fn (mut g Gen) infix_expr_eq_op(node ast.InfixExpr) {
178177
if !skip_for_generic_ne {
179178
has_defined_eq_operator = true
180179
eq_operator_expects_ptr = m.receiver_type.is_ptr()
181-
eq_method = m
182180
}
183181
}
184182
// TODO: investigate why the following is needed for vlib/v/tests/string_alias_test.v and vlib/v/tests/anon_fn_with_alias_args_test.v

0 commit comments

Comments
 (0)