Remove unused words discovered by Samuel Tardieu
parent
ef6634337d
commit
37b01357ec
|
@ -58,8 +58,6 @@ M: object (fake-quotations>) , ;
|
||||||
[ parse-definition* ] dip
|
[ parse-definition* ] dip
|
||||||
parsed ;
|
parsed ;
|
||||||
|
|
||||||
: DEFINE* ( accum -- accum ) \ define-declared* parsed ;
|
|
||||||
|
|
||||||
SYNTAX: `TUPLE:
|
SYNTAX: `TUPLE:
|
||||||
scan-param parsed
|
scan-param parsed
|
||||||
scan {
|
scan {
|
||||||
|
|
|
@ -51,9 +51,6 @@ M: heap heap-size ( heap -- n )
|
||||||
: data-nth ( n heap -- entry )
|
: data-nth ( n heap -- entry )
|
||||||
data>> nth-unsafe ; inline
|
data>> nth-unsafe ; inline
|
||||||
|
|
||||||
: up-value ( n heap -- entry )
|
|
||||||
[ up ] dip data-nth ; inline
|
|
||||||
|
|
||||||
: left-value ( n heap -- entry )
|
: left-value ( n heap -- entry )
|
||||||
[ left ] dip data-nth ; inline
|
[ left ] dip data-nth ; inline
|
||||||
|
|
||||||
|
@ -75,9 +72,6 @@ M: heap heap-size ( heap -- n )
|
||||||
: data-pop* ( heap -- )
|
: data-pop* ( heap -- )
|
||||||
data>> pop* ; inline
|
data>> pop* ; inline
|
||||||
|
|
||||||
: data-peek ( heap -- entry )
|
|
||||||
data>> last ; inline
|
|
||||||
|
|
||||||
: data-first ( heap -- entry )
|
: data-first ( heap -- entry )
|
||||||
data>> first ; inline
|
data>> first ; inline
|
||||||
|
|
||||||
|
@ -130,9 +124,6 @@ DEFER: up-heap
|
||||||
2dup right-bounds-check?
|
2dup right-bounds-check?
|
||||||
[ drop left ] [ (child) ] if ;
|
[ drop left ] [ (child) ] if ;
|
||||||
|
|
||||||
: swap-down ( m heap -- )
|
|
||||||
[ child ] 2keep data-exchange ;
|
|
||||||
|
|
||||||
DEFER: down-heap
|
DEFER: down-heap
|
||||||
|
|
||||||
: (down-heap) ( m heap -- )
|
: (down-heap) ( m heap -- )
|
||||||
|
|
|
@ -55,8 +55,6 @@ PRIVATE>
|
||||||
] check-something
|
] check-something
|
||||||
] [ drop ] if ;
|
] [ drop ] if ;
|
||||||
|
|
||||||
: check-words ( words -- ) [ check-word ] each ;
|
|
||||||
|
|
||||||
: check-article ( article -- )
|
: check-article ( article -- )
|
||||||
[ with-interactive-vocabs ] vocabs-quot set
|
[ with-interactive-vocabs ] vocabs-quot set
|
||||||
>link dup '[
|
>link dup '[
|
||||||
|
|
|
@ -135,9 +135,6 @@ TUPLE: multi-texture grid display-list loc disposed ;
|
||||||
[ dup image-locs ] dip
|
[ dup image-locs ] dip
|
||||||
'[ [ _ v+ <single-texture> |dispose ] 2map ] 2map ;
|
'[ [ _ v+ <single-texture> |dispose ] 2map ] 2map ;
|
||||||
|
|
||||||
: draw-textured-grid ( grid -- )
|
|
||||||
[ [ [ dim>> ] keep (draw-textured-rect) ] each ] each ;
|
|
||||||
|
|
||||||
: grid-has-alpha? ( grid -- ? )
|
: grid-has-alpha? ( grid -- ? )
|
||||||
first first image>> has-alpha? ;
|
first first image>> has-alpha? ;
|
||||||
|
|
||||||
|
|
|
@ -36,9 +36,6 @@ TUPLE: gadget-metrics height ascent descent cap-height ;
|
||||||
: max-descent ( seq -- n )
|
: max-descent ( seq -- n )
|
||||||
[ descent>> ] map ?supremum ;
|
[ descent>> ] map ?supremum ;
|
||||||
|
|
||||||
: max-text-height ( seq -- y )
|
|
||||||
[ ascent>> ] filter [ height>> ] map ?supremum ;
|
|
||||||
|
|
||||||
: max-graphics-height ( seq -- y )
|
: max-graphics-height ( seq -- y )
|
||||||
[ ascent>> not ] filter [ height>> ] map ?supremum 0 or ;
|
[ ascent>> not ] filter [ height>> ] map ?supremum 0 or ;
|
||||||
|
|
||||||
|
|
|
@ -96,10 +96,6 @@ M: pane selected-children
|
||||||
add-incremental
|
add-incremental
|
||||||
] [ next-line ] bi ;
|
] [ next-line ] bi ;
|
||||||
|
|
||||||
: ?pane-nl ( pane -- )
|
|
||||||
[ dup current>> children>> empty? [ pane-nl ] [ drop ] if ]
|
|
||||||
[ pane-nl ] bi ;
|
|
||||||
|
|
||||||
: smash-pane ( pane -- gadget ) [ pane-nl ] [ output>> smash-line ] bi ;
|
: smash-pane ( pane -- gadget ) [ pane-nl ] [ output>> smash-line ] bi ;
|
||||||
|
|
||||||
: pane-write ( seq pane -- )
|
: pane-write ( seq pane -- )
|
||||||
|
|
|
@ -23,8 +23,6 @@ TUPLE: slider < track elevator thumb saved line ;
|
||||||
|
|
||||||
TUPLE: elevator < gadget direction ;
|
TUPLE: elevator < gadget direction ;
|
||||||
|
|
||||||
: find-elevator ( gadget -- elevator/f ) [ elevator? ] find-parent ;
|
|
||||||
|
|
||||||
: find-slider ( gadget -- slider/f ) [ slider? ] find-parent ;
|
: find-slider ( gadget -- slider/f ) [ slider? ] find-parent ;
|
||||||
|
|
||||||
CONSTANT: elevator-padding 4
|
CONSTANT: elevator-padding 4
|
||||||
|
|
|
@ -72,9 +72,6 @@ SYMBOL: table
|
||||||
: connect ( class1 class2 -- ) 1 set-table ;
|
: connect ( class1 class2 -- ) 1 set-table ;
|
||||||
: disconnect ( class1 class2 -- ) 0 set-table ;
|
: disconnect ( class1 class2 -- ) 0 set-table ;
|
||||||
|
|
||||||
: break-around ( classes1 classes2 -- )
|
|
||||||
[ disconnect ] [ swap disconnect ] 2bi ;
|
|
||||||
|
|
||||||
: make-grapheme-table ( -- )
|
: make-grapheme-table ( -- )
|
||||||
{ CR } { LF } connect
|
{ CR } { LF } connect
|
||||||
{ Control CR LF } graphemes disconnect
|
{ Control CR LF } graphemes disconnect
|
||||||
|
@ -91,9 +88,6 @@ VALUE: grapheme-table
|
||||||
: grapheme-break? ( class1 class2 -- ? )
|
: grapheme-break? ( class1 class2 -- ? )
|
||||||
grapheme-table nth nth not ;
|
grapheme-table nth nth not ;
|
||||||
|
|
||||||
: chars ( i str n -- str[i] str[i+n] )
|
|
||||||
swap [ dupd + ] dip [ ?nth ] curry bi@ ;
|
|
||||||
|
|
||||||
PRIVATE>
|
PRIVATE>
|
||||||
|
|
||||||
: first-grapheme ( str -- i )
|
: first-grapheme ( str -- i )
|
||||||
|
|
|
@ -40,6 +40,4 @@ $nl
|
||||||
HELP: math-generic
|
HELP: math-generic
|
||||||
{ $class-description "The class of generic words using " { $link math-combination } "." } ;
|
{ $class-description "The class of generic words using " { $link math-combination } "." } ;
|
||||||
|
|
||||||
HELP: last/first
|
|
||||||
{ $values { "seq" sequence } { "pair" "a two-element array" } }
|
|
||||||
{ $description "Creates an array holding the first and last element of the sequence." } ;
|
|
||||||
|
|
|
@ -15,8 +15,6 @@ PREDICATE: math-class < class
|
||||||
|
|
||||||
<PRIVATE
|
<PRIVATE
|
||||||
|
|
||||||
: last/first ( seq -- pair ) [ last ] [ first ] bi 2array ;
|
|
||||||
|
|
||||||
: bootstrap-words ( classes -- classes' )
|
: bootstrap-words ( classes -- classes' )
|
||||||
[ bootstrap-word ] map ;
|
[ bootstrap-word ] map ;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue