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