]> gitweb.factorcode.org Git - factor.git/commitdiff
images.viewer: Don't override model activation/deactivation
authortimor <timor.dd@googlemail.com>
Sun, 8 Nov 2020 14:13:44 +0000 (15:13 +0100)
committerJohn Benediktsson <mrjbq7@gmail.com>
Sun, 8 Nov 2020 16:16:21 +0000 (08:16 -0800)
`image-control` implements model activation/deactivation in graft*/ungraft*, while
this should be done already in `notify` for all gadgets.

This commit removes that code.

extra/images/viewer/viewer.factor

index 7a84b3f2b68023f92c95d67e221230e6e47b299b..48a984aae320658409f9f03c0627848d927b7840 100644 (file)
@@ -104,10 +104,5 @@ M: model set-image [ value>> >>image drop ] [ >>model ] 2bi ;
 
 : image. ( object -- ) <image-gadget> gadget. ;
 
-<PRIVATE
-M: image-control graft* start-control ;
-M: image-control ungraft* [ stop-control ] [ call-next-method ] bi ;
-PRIVATE>
-
 M: image content-gadget
     <image-gadget> ;