From: Jason A. Donenfeld Date: Thu, 29 Aug 2019 18:22:15 +0000 (-0600) Subject: wintun: delete all interfaces is not used anymore X-Git-Tag: 0.0.20190908~13 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fa7763c268d2f5b93aa76f673ae0db7e740cf08d;p=thirdparty%2Fwireguard-go.git wintun: delete all interfaces is not used anymore --- diff --git a/tun/wintun/wintun_windows.go b/tun/wintun/wintun_windows.go index 81db608..fb8b908 100644 --- a/tun/wintun/wintun_windows.go +++ b/tun/wintun/wintun_windows.go @@ -532,15 +532,6 @@ func (pool Pool) DeleteMatchingInterfaces(matches func(wintun *Interface) bool) return } -// DeleteAllInterfaces deletes all Wintun interfaces, and returns which -// ones it deleted, whether a reboot is required after, and which errors -// occurred during the process. -func (pool Pool) DeleteAllInterfaces() (deviceInstancesDeleted []uint32, rebootRequired bool, errors []error) { - return pool.DeleteMatchingInterfaces(func(wintun *Interface) bool { - return true - }) -} - // isMember checks if SPDRP_DEVICEDESC or SPDRP_FRIENDLYNAME match device type name. func (pool Pool) isMember(deviceInfoSet setupapi.DevInfo, deviceInfoData *setupapi.DevInfoData) (bool, error) { deviceDescVal, err := deviceInfoSet.DeviceRegistryProperty(deviceInfoData, setupapi.SPDRP_DEVICEDESC)