From 4bce4db2f767ac337ab51114de040985bde0a7a6 Mon Sep 17 00:00:00 2001 From: Eduardo Cavazos Date: Mon, 14 Jul 2008 22:17:49 -0500 Subject: [PATCH] ui.gadgets: remove 'make-gadget' --- extra/ui/gadgets/gadgets-docs.factor | 6 +----- extra/ui/gadgets/gadgets.factor | 3 --- extra/ui/ui-docs.factor | 1 - 3 files changed, 1 insertion(+), 9 deletions(-) diff --git a/extra/ui/gadgets/gadgets-docs.factor b/extra/ui/gadgets/gadgets-docs.factor index 3437f1fdb4..597e811d7f 100755 --- a/extra/ui/gadgets/gadgets-docs.factor +++ b/extra/ui/gadgets/gadgets-docs.factor @@ -180,13 +180,9 @@ HELP: focusable-child { $values { "gadget" gadget } { "child" gadget } } { $description "Outputs the child of the gadget which would prefer to receive keyboard focus." } ; -HELP: make-gadget -{ $values { "gadget" gadget } { "quot" quotation } } -{ $description "Calls the quotation in a new scope with the gadget stored in the " { $link gadget } " variable." } ; - HELP: with-gadget { $values { "gadget" gadget } { "quot" quotation } } -{ $description "Calls the quotation in a new scope with the " { $link gadget } " and " { $link make-gadget } " variables set to " { $snippet "gadget" } } ; +{ $description "Calls the quotation in a new scope with the " { $link gadget } " variable set to " { $snippet "gadget" } } ; { control-value set-control-value gadget-model } related-words diff --git a/extra/ui/gadgets/gadgets.factor b/extra/ui/gadgets/gadgets.factor index ef0a9e828d..10ea9cbb7e 100755 --- a/extra/ui/gadgets/gadgets.factor +++ b/extra/ui/gadgets/gadgets.factor @@ -360,9 +360,6 @@ M: f request-focus-on 2drop ; : with-gadget ( gadget quot -- ) gadget swap with-variable ; inline -: make-gadget ( gadget quot -- gadget ) - [ with-gadget ] [ drop ] 2bi ; inline - ! Deprecated : set-gadget-delegate ( gadget tuple -- ) over [ diff --git a/extra/ui/ui-docs.factor b/extra/ui/ui-docs.factor index 333afd3485..7b7a6866c7 100755 --- a/extra/ui/ui-docs.factor +++ b/extra/ui/ui-docs.factor @@ -234,7 +234,6 @@ $nl "Similar tools exist for constructing complex gadget hierarchies. Different words are used for different types of gadgets; see " { $link "ui-pack-layout" } ", " { $link "ui-track-layout" } " and " { $link "ui-frame-layout" } " for specifics. This section documents their common factors." $nl "Gadget construction combinators whose names are prefixed with " { $snippet "make-" } " construct new gadgets and push them on the stack. The primitive combinator used to define all combinators of this form:" -{ $subsection make-gadget } "Words such as " { $link track, } " access the gadget through the " { $link gadget } " variable." $nl "A combinator which stores a gadget in the " { $link gadget } " variable:"