def deleted
import bend-lint-rules@0.2.0.0/no_unused/imports.bend as Importsimport Base
import bend-lint-api@0.2.0.0/linter/lint.bend as Lint
import bend-lint-api@0.2.0.0/shared/strings.bend as Strings
10# The fix that deletes the import's line.
11def deleted(+text: String, path: String, at: U32) -> List<&2, Lint.Fix>:
12 +beg = Strings.line_start(text, at)
13 [
14 Lint.Fix{
15 "Remove the import",
16 [Lint.Replace{Lint.Span{path, beg, Strings.line_end(text, beg)}, ""}]
17 }
18 ]