From: Doug Coleman Date: Sun, 11 Sep 2022 03:52:10 +0000 (-0500) Subject: basis: use lint.vocabs tool to trim using lists X-Git-Tag: 0.99~1089 X-Git-Url: https://gitweb.factorcode.org/gitweb.cgi?p=factor.git;a=commitdiff_plain;h=1542ebe47c58f140e5929772ad71f5d2ad46ec51 basis: use lint.vocabs tool to trim using lists compiler.cfg.builder.alien in `compiler` is not reported as being used but it must appear in the USING: list where it does or else smart combinators will fail on bootstrap in classes.struct also false positives reported in urls --- diff --git a/basis/cocoa/cocoa.factor b/basis/cocoa/cocoa.factor index 01ee91007f..d3ac852299 100644 --- a/basis/cocoa/cocoa.factor +++ b/basis/cocoa/cocoa.factor @@ -1,7 +1,7 @@ ! Copyright (C) 2006, 2009 Slava Pestov ! See http://factorcode.org/license.txt for BSD license. USING: assocs cocoa.messages compiler.units core-foundation.bundles -hashtables init io kernel lexer namespaces sequences vocabs ; +io kernel lexer namespaces sequences vocabs ; IN: cocoa SYMBOL: sent-messages diff --git a/basis/core-text/core-text.factor b/basis/core-text/core-text.factor index fc5b9c7d6f..d50f69040b 100644 --- a/basis/core-text/core-text.factor +++ b/basis/core-text/core-text.factor @@ -4,9 +4,9 @@ USING: accessors alien.c-types alien.data alien.syntax arrays assocs cache classes colors combinators core-foundation core-foundation.attributed-strings core-foundation.strings core-graphics core-graphics.types core-text.fonts destructors -fonts init io.encodings.string io.encodings.utf16 kernel make -math math.functions math.order math.vectors namespaces opengl -sequences strings ; +fonts io.encodings.string io.encodings.utf16 kernel make +math math.functions math.vectors namespaces opengl sequences +strings ; IN: core-text TYPEDEF: void* CTLineRef diff --git a/basis/environment/environment.factor b/basis/environment/environment.factor index 4647fb4578..ee3071acbe 100644 --- a/basis/environment/environment.factor +++ b/basis/environment/environment.factor @@ -1,6 +1,6 @@ ! Copyright (C) 2008 Doug Coleman. ! See http://factorcode.org/license.txt for BSD license. -USING: assocs combinators continuations init kernel sequences +USING: assocs combinators continuations kernel sequences splitting system vocabs vocabs.loader ; IN: environment diff --git a/basis/eval/eval.factor b/basis/eval/eval.factor index 1accb66c99..a4efaa366f 100644 --- a/basis/eval/eval.factor +++ b/basis/eval/eval.factor @@ -1,9 +1,8 @@ ! Copyright (C) 2008, 2009 Slava Pestov. ! See http://factorcode.org/license.txt for BSD license. USING: combinators combinators.smart compiler.units -continuations debugger effects.parser io io.streams.string -kernel namespaces parser parser.notes prettyprint sequences -splitting ; +continuations debugger effects.parser io.streams.string +kernel namespaces parser parser.notes prettyprint splitting ; IN: eval : parse-string ( str -- quot ) diff --git a/basis/globs/globs.factor b/basis/globs/globs.factor index 21cc9eab75..3cb4ed094e 100644 --- a/basis/globs/globs.factor +++ b/basis/globs/globs.factor @@ -1,7 +1,7 @@ ! Copyright (C) 2007, 2009 Slava Pestov, Daniel Ehrenberg. ! See http://factorcode.org/license.txt for BSD license. USING: accessors arrays combinators combinators.short-circuit -io.directories io.files io.files.info io.pathnames kernel locals +io.directories io.files io.files.info io.pathnames kernel make peg.ebnf regexp regexp.combinators sequences strings system unicode multiline ; IN: globs diff --git a/basis/heaps/heaps.factor b/basis/heaps/heaps.factor index 69940c614d..2c6d4c8102 100644 --- a/basis/heaps/heaps.factor +++ b/basis/heaps/heaps.factor @@ -1,7 +1,7 @@ ! Copyright (C) 2007, 2008 Ryan Murphy, Doug Coleman, ! Slava Pestov. ! See http://factorcode.org/license.txt for BSD license. -USING: accessors arrays assocs fry kernel kernel.private locals +USING: accessors arrays assocs fry kernel kernel.private math math.order math.private sequences sequences.private summary vectors ; IN: heaps diff --git a/basis/hints/hints.factor b/basis/hints/hints.factor index 9d7bff4422..403bb4e12e 100644 --- a/basis/hints/hints.factor +++ b/basis/hints/hints.factor @@ -3,8 +3,8 @@ USING: accessors arrays assocs byte-arrays byte-vectors classes combinators definitions fry generic generic.single generic.standard hashtables kernel kernel.private math -math.parser parser sbufs sequences sequences.private splitting -strings vectors words ; +math.parser parser sbufs sequences splitting strings vectors +words ; IN: hints GENERIC: specializer-predicate ( spec -- quot ) diff --git a/basis/images/images.factor b/basis/images/images.factor index 95b77e756e..4c392b84d1 100644 --- a/basis/images/images.factor +++ b/basis/images/images.factor @@ -1,6 +1,6 @@ ! Copyright (C) 2009 Doug Coleman, Daniel Ehrenberg. ! See http://factorcode.org/license.txt for BSD license. -USING: accessors combinators kernel locals math sequences ; +USING: accessors combinators kernel math sequences ; IN: images SINGLETONS: diff --git a/basis/interpolate/interpolate.factor b/basis/interpolate/interpolate.factor index fd00b1fdd1..cd300a585c 100644 --- a/basis/interpolate/interpolate.factor +++ b/basis/interpolate/interpolate.factor @@ -1,8 +1,8 @@ ! Copyright (C) 2008, 2009 Slava Pestov. ! See http://factorcode.org/license.txt for BSD license. USING: accessors fry generalizations io io.streams.string kernel -locals macros make math math.order math.parser multiline -namespaces present sequences splitting strings vocabs.parser ; +make math math.order math.parser multiline namespaces present +sequences splitting strings vocabs.parser ; IN: interpolate float ; diff --git a/basis/openssl/openssl.factor b/basis/openssl/openssl.factor index 977f8d0f30..28890bedd9 100644 --- a/basis/openssl/openssl.factor +++ b/basis/openssl/openssl.factor @@ -1,6 +1,6 @@ ! Copyright (C) 2007, 2008, Slava Pestov, Elie CHAFTARI. ! See http://factorcode.org/license.txt for BSD license. -USING: alien.libraries init kernel math namespaces openssl.libcrypto +USING: alien.libraries kernel math namespaces openssl.libcrypto openssl.libssl sequences ; IN: openssl diff --git a/basis/peg/peg.factor b/basis/peg/peg.factor index a73df1c004..eb8dd16b33 100644 --- a/basis/peg/peg.factor +++ b/basis/peg/peg.factor @@ -3,9 +3,8 @@ USING: accessors arrays assocs classes combinators combinators.short-circuit compiler.units effects.parser fry -generalizations kernel locals make math math.order namespaces -quotations sequences sets splitting unicode vectors -vocabs.loader words ; +kernel make math math.order namespaces quotations sequences +sets splitting unicode vectors vocabs.loader words ; IN: peg diff --git a/basis/random/random.factor b/basis/random/random.factor index 4c91bf3af9..e21a7f4d74 100644 --- a/basis/random/random.factor +++ b/basis/random/random.factor @@ -1,11 +1,10 @@ ! Copyright (C) 2008 Doug Coleman. ! See http://factorcode.org/license.txt for BSD license. USING: accessors alien.data arrays assocs byte-arrays -byte-vectors combinators combinators.short-circuit endian fry -hashtables hashtables.private hash-sets hints io.backend kernel -locals math math.bitwise math.constants math.functions -math.order ranges namespaces sequences sequences.private -sets summary system typed vocabs ; +combinators combinators.short-circuit hash-sets hashtables +hashtables.private kernel math math.bitwise math.constants +math.functions math.order namespaces sequences sequences.private +sets summary system vocabs ; QUALIFIED-WITH: alien.c-types c QUALIFIED-WITH: sets sets IN: random diff --git a/basis/threads/threads.factor b/basis/threads/threads.factor index c4ce4387fa..d56a7928ad 100644 --- a/basis/threads/threads.factor +++ b/basis/threads/threads.factor @@ -3,7 +3,7 @@ ! See http://factorcode.org/license.txt for BSD license. USING: accessors alien.private arrays assocs boxes combinators continuations continuations.private deques dlists hashtables -heaps init kernel kernel.private math math.order namespaces +heaps kernel kernel.private math math.order namespaces quotations sequences strings system ; IN: threads diff --git a/basis/tr/tr.factor b/basis/tr/tr.factor index 2de706bb14..8244a26da6 100644 --- a/basis/tr/tr.factor +++ b/basis/tr/tr.factor @@ -1,8 +1,7 @@ ! Copyright (C) 2008, 2010 Slava Pestov. ! See http://factorcode.org/license.txt for BSD license. USING: ascii assocs byte-arrays fry hints kernel lexer math -math.order parser sequences sequences.private strings summary -words ; +parser sequences sequences.private strings summary words ; IN: tr ERROR: bad-tr ; diff --git a/basis/typed/typed.factor b/basis/typed/typed.factor index 9ec7b87c3b..a87037717a 100644 --- a/basis/typed/typed.factor +++ b/basis/typed/typed.factor @@ -3,8 +3,8 @@ USING: accessors arrays classes classes.algebra classes.tuple classes.struct combinators combinators.short-circuit definitions effects effects.parser fry generalizations kernel kernel.private -locals locals.parser macros quotations sequences slots -stack-checker.dependencies words ; +locals.parser quotations sequences slots stack-checker.dependencies +words ; FROM: classes.tuple.private => tuple-layout ; IN: typed diff --git a/basis/ui/ui.factor b/basis/ui/ui.factor index 93abb0ba96..b2b556a426 100644 --- a/basis/ui/ui.factor +++ b/basis/ui/ui.factor @@ -3,7 +3,7 @@ USING: accessors arrays assocs boxes classes.tuple classes.tuple.parser combinators combinators.short-circuit concurrency.flags concurrency.promises continuations deques -destructors dlists init kernel lexer make math math.functions +destructors dlists kernel lexer make math math.functions namespaces parser sequences sets strings threads ui.backend ui.gadgets ui.gadgets.private ui.gadgets.worlds ui.gestures ui.render vectors vocabs.parser words ; diff --git a/basis/unix/unix.factor b/basis/unix/unix.factor index da7b8a1594..2d09096451 100644 --- a/basis/unix/unix.factor +++ b/basis/unix/unix.factor @@ -1,9 +1,9 @@ ! Copyright (C) 2005, 2010 Slava Pestov. ! Copyright (C) 2008 Eduardo Cavazos. ! See http://factorcode.org/license.txt for BSD license. -USING: accessors alien.c-types alien.syntax byte-arrays classes.struct +USING: accessors alien.c-types alien.syntax byte-arrays combinators.short-circuit combinators.smart generalizations kernel -libc locals math sequences sequences.generalizations strings system +libc math sequences sequences.generalizations strings system unix.ffi vocabs.loader ; IN: unix diff --git a/basis/urls/urls.factor b/basis/urls/urls.factor index c78a44bd4e..c3aa3a93ec 100644 --- a/basis/urls/urls.factor +++ b/basis/urls/urls.factor @@ -2,11 +2,11 @@ ! See http://factorcode.org/license.txt for BSD license. USING: accessors ascii assocs combinators -combinators.short-circuit fry io.encodings.string -io.encodings.utf8 io.pathnames io.sockets io.sockets.secure -kernel lexer linked-assocs make math math.parser multiline -namespaces peg.ebnf present sequences sequences.generalizations -splitting strings strings.parser urls.encoding vocabs.loader ; +combinators.short-circuit io.pathnames io.sockets +io.sockets.secure kernel lexer linked-assocs make math.parser +multiline namespaces peg.ebnf present sequences +sequences.generalizations splitting strings strings.parser +urls.encoding vocabs.loader ; IN: urls diff --git a/basis/wrap/wrap.factor b/basis/wrap/wrap.factor index 0cab09d331..4fe6247d99 100644 --- a/basis/wrap/wrap.factor +++ b/basis/wrap/wrap.factor @@ -1,8 +1,7 @@ ! Copyright (C) 2009 Daniel Ehrenberg ! Copyright (C) 2017 John Benediktsson ! See http://factorcode.org/license.txt for BSD license. -USING: accessors arrays kernel locals math sequences -sequences.private ; +USING: accessors arrays kernel math sequences sequences.private ; IN: wrap TUPLE: element contents black white ;