summaryrefslogtreecommitdiff
path: root/exports/exports.go
diff options
context:
space:
mode:
Diffstat (limited to 'exports/exports.go')
-rw-r--r--exports/exports.go22
1 files changed, 0 insertions, 22 deletions
diff --git a/exports/exports.go b/exports/exports.go
index 931bed5..0eae802 100644
--- a/exports/exports.go
+++ b/exports/exports.go
@@ -946,28 +946,6 @@ func getCookie(c C.uintptr_t) (*cookie.Cookie, error) {
return v, nil
}
-// DiscoveryStartup does a discovery request in the background.
-//
-// - The `refresh` argument is a callback that is called when the refreshing is done.
-//
-// When this callback is thus called, the app SHOULD refresh the server list of the already configured servers.
-// This DiscoveryStartup function MUST be called after calling `Register`.
-//
-//export DiscoveryStartup
-func DiscoveryStartup(refresh C.RefreshList) *C.char {
- state, stateErr := getVPNState()
- if stateErr != nil {
- return getCError(stateErr)
- }
- startupErr := state.DiscoveryStartup(func() {
- if refresh == nil {
- return
- }
- C.call_refresh_list(refresh)
- })
- return getCError(startupErr)
-}
-
// SetTokenHandler sets the token getters and token setters for OAuth.
//
// Because the data that is saved does not contain OAuth tokens for server, the common lib asks and sets the tokens using these callback functions.