remove non-working get-font' method of control<%>'

Closes PR 9938
This commit is contained in:
Matthew Flatt 2011-01-28 05:54:03 -07:00
parent 2ab0d36738
commit 5467f89a23
2 changed files with 3 additions and 14 deletions

View File

@ -39,8 +39,7 @@
(define control<%> (define control<%>
(interface (subwindow<%>) (interface (subwindow<%>)
command command))
get-font))
(define-local-member-name hidden-child? label-checker) (define-local-member-name hidden-child? label-checker)
@ -89,8 +88,7 @@
(public (public
[hidden-child? (lambda () #f)] ; module-local method [hidden-child? (lambda () #f)] ; module-local method
[label-checker (lambda () check-label-string/false)] ; module-local method [label-checker (lambda () check-label-string/false)] ; module-local method
[command (lambda (e) (void (callback this e)))] ; no entry/exit needed [command (lambda (e) (void (callback this e)))]) ; no entry/exit needed
[get-font (lambda (e) (send wx get-font))]) ; no entry/exit needed
(private-field (private-field
[wx #f]) [wx #f])
(sequence (sequence
@ -121,8 +119,7 @@
(sequence ; abuse of `sequence'! (sequence ; abuse of `sequence'!
(inherit/super [super-min-width min-width] (inherit/super [super-min-width min-width]
[super-min-height min-height] [super-min-height min-height]
[super-get-label get-label] [super-get-label get-label]))
[super-get-font get-font]))
(private-field (private-field
[do-auto-resize? auto-resize] [do-auto-resize? auto-resize]
[orig-font (or (no-val->#f font) [orig-font (or (no-val->#f font)

View File

@ -25,13 +25,5 @@ The @scheme[control<%>] interface is implemented by the built-in
Calls the control's callback function, passing on the given Calls the control's callback function, passing on the given
@scheme[control-event%] object. @scheme[control-event%] object.
}
@defmethod[(get-font)
(is-a?/c font%)]{
Returns the font used for the control, which is optionally supplied
when a control is created.
}} }}