Skip to content

Commit 99537f2

Browse files
committed
remove Register/UnregisterWindow functionality
- this is no longer needed
1 parent b384bb8 commit 99537f2

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

v3/pkg/application/application.go

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -893,23 +893,6 @@ func (a *App) AssetServerHandler() func(rw http.ResponseWriter, req *http.Reques
893893
return a.assets.ServeHTTP
894894
}
895895

896-
func (a *App) RegisterWindow(window Window) uint {
897-
id := getWindowID()
898-
if a.windows == nil {
899-
a.windows = make(map[uint]Window)
900-
}
901-
a.windowsLock.Lock()
902-
defer a.windowsLock.Unlock()
903-
a.windows[id] = window
904-
return id
905-
}
906-
907-
func (a *App) UnregisterWindow(id uint) {
908-
a.windowsLock.Lock()
909-
defer a.windowsLock.Unlock()
910-
delete(a.windows, id)
911-
}
912-
913896
func (a *App) BrowserOpenURL(url string) error {
914897
return browser.OpenURL(url)
915898
}

0 commit comments

Comments
 (0)