Skip to content

Commit 01cc4f0

Browse files
committed
remove dead code
There are two implementations of `show-time`, and the removed one was unused.
1 parent 0fd065a commit 01cc4f0

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

slideshow-lib/slideshow/viewer.rkt

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -718,25 +718,6 @@
718718
(/ current-page (max 1 (sub1 slide-count))))
719719
(values 0 0)))
720720

721-
(define (show-time dc w h)
722-
(let* ([left (- w GAUGE-WIDTH)]
723-
[top (- h GAUGE-HEIGHT)]
724-
[b (send dc get-brush)]
725-
[p (send dc get-pen)])
726-
(send dc set-pen black-pen)
727-
(send dc set-brush (if start-time gray-brush clear-brush))
728-
(send dc draw-rectangle left top GAUGE-WIDTH GAUGE-HEIGHT)
729-
(when start-time
730-
(let-values ([(duration distance) (calc-progress)])
731-
(send dc set-brush (if (< distance duration)
732-
red-brush
733-
green-brush))
734-
(send dc draw-rectangle left top (floor (* GAUGE-WIDTH distance)) GAUGE-HEIGHT)
735-
(send dc set-brush clear-brush)
736-
(send dc draw-rectangle left top (floor (* GAUGE-WIDTH duration)) GAUGE-HEIGHT)))
737-
(send dc set-pen p)
738-
(send dc set-brush b)))
739-
740721
(define c%
741722
(class canvas%
742723
(inherit get-dc get-client-size make-bitmap

0 commit comments

Comments
 (0)