Skip to content

Commit

Permalink
Revert "checker: warn on unused imported functions used via `import m…
Browse files Browse the repository at this point in the history
…ath { sin, cos }`"

This reverts commit ddf0468.
  • Loading branch information
Delta456 committed Jan 18, 2025
1 parent 275b365 commit e2882ef
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 16 deletions.
3 changes: 0 additions & 3 deletions vlib/v/checker/checker.v
Original file line number Diff line number Diff line change
Expand Up @@ -2791,9 +2791,6 @@ fn (mut c Checker) import_stmt(node ast.Import) {
if !func.is_pub {
c.error('module `${node.mod}` function `${sym.name}()` is private', sym.pos)
}
if func.usages != 1 {
c.warn('module `${node.mod}` function `${sym.name}()` is unused', sym.pos)
}
continue
}
if _ := c.file.global_scope.find_const(name) {
Expand Down
10 changes: 0 additions & 10 deletions vlib/v/checker/tests/import_sym_fn_unused_warning_err.out

This file was deleted.

3 changes: 0 additions & 3 deletions vlib/v/checker/tests/import_sym_fn_unused_warning_err.vv

This file was deleted.

0 comments on commit e2882ef

Please sign in to comment.