summaryrefslogtreecommitdiffhomepage
path: root/tun
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2019-08-29 12:22:15 -0600
committerJason A. Donenfeld <Jason@zx2c4.com>2019-08-29 12:22:15 -0600
commitfa7763c268d2f5b93aa76f673ae0db7e740cf08d (patch)
treeaec011cf93e893036ac1e630206edb9d16feb58f /tun
parentd94bae834882e6579f09db46b60cf9a1c46dac8a (diff)
wintun: delete all interfaces is not used anymore
Diffstat (limited to 'tun')
-rw-r--r--tun/wintun/wintun_windows.go9
1 files changed, 0 insertions, 9 deletions
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)