Handbook
Glossary
find-unused-in-file ( path -- seq )
Vocabulary
lint
.
vocabs
Inputs
path
a pathname string
Outputs
seq
a
sequence
Word description
Finds unused imports in the given file. Returing the result as a
sequence
.
Examples
USING: lint.vocabs prettyprint ; "vocab:lint/vocabs/vocabs.factor" find-unused-in-file .
{ }
Definition
USING:
io.encodings.utf8
io.files
;
IN:
lint.vocabs
:
find-unused-in-file
( path -- seq )
utf8
file-contents
find-unused-in-string
;