diff --git a/cmd/tools/vvet/analysis.v b/cmd/tools/vvet/analysis.v index 7e661a6898808d..9fa13d4d6a3283 100644 --- a/cmd/tools/vvet/analysis.v +++ b/cmd/tools/vvet/analysis.v @@ -14,18 +14,18 @@ mut: fn (mut vt Vet) repeated_code(expr ast.Expr) { match expr { ast.IndexExpr { - lock vt.analysis.repeated { - vt.analysis.repeated['${expr.left}[${expr.index}]'][vt.file] << expr.pos - } + // lock vt.analysis.repeated { + // vt.analysis.repeated['${expr.left}[${expr.index}]'][vt.file] << expr.pos + // } } ast.CallExpr { - lock vt.analysis.repeated { - if expr.is_static_method || expr.is_method { - vt.analysis.repeated['${expr.left}.${expr.name}(${expr.args.map(it.str()).join(', ')})'][vt.file] << expr.pos - } else { - vt.analysis.repeated['${expr.mod}.${expr.name}(${expr.args.map(it.str()).join(', ')})'][vt.file] << expr.pos - } - } + // lock vt.analysis.repeated { + // if expr.is_static_method || expr.is_method { + // vt.analysis.repeated['${expr.left}.${expr.name}(${expr.args.map(it.str()).join(', ')})'][vt.file] << expr.pos + // } else { + // vt.analysis.repeated['${expr.mod}.${expr.name}(${expr.args.map(it.str()).join(', ')})'][vt.file] << expr.pos + // } + // } } else {} } diff --git a/cmd/tools/vvet/errors.v b/cmd/tools/vvet/errors.v index acf28746622132..7c9f63eacd22bd 100644 --- a/cmd/tools/vvet/errors.v +++ b/cmd/tools/vvet/errors.v @@ -125,15 +125,3 @@ fn (vt &Vet) e2string(err VetError) string { } return '${location} ${kind} ${err.message}' } - -fn (vt &Vet) report(err_kind ErrorKind, message string) string { - mut kind := '${err_kind}:' - if vt.opt.use_color { - kind = term.bold(match err_kind { - .warning { term.magenta(kind) } - .error { term.red(kind) } - .notice { term.yellow(kind) } - }) - } - return '${kind} ${message}' -}