From 3bb6cca157106e7cba341f4bfa78328483c535c7 Mon Sep 17 00:00:00 2001 From: Chris Waldon Date: Fri, 9 Jun 2023 14:59:55 -0400 Subject: [PATCH] app: [API] drop ReadClipboard method Now that all events are not emitted at the top level, there is no longer a way to receive the clipboard event generated by this window-global clipboard read method. As such, this commit drops the useless and confusing method from the exported API. Fixes: https://todo.sr.ht/~eliasnaur/gio/501 Signed-off-by: Chris Waldon --- app/window.go | 9 --------- 1 file changed, 9 deletions(-) diff --git a/app/window.go b/app/window.go index 1b0bce3f..fc01143c 100644 --- a/app/window.go +++ b/app/window.go @@ -375,15 +375,6 @@ func (w *Window) Option(opts ...Option) { } } -// ReadClipboard initiates a read of the clipboard in the form -// of a clipboard.Event. Multiple reads may be coalesced -// to a single event. -func (w *Window) ReadClipboard() { - w.driverDefer(func(d driver) { - d.ReadClipboard() - }) -} - // WriteClipboard writes a string to the clipboard. func (w *Window) WriteClipboard(s string) { w.driverDefer(func(d driver) {