]> git.ipfire.org Git - thirdparty/wireguard-go.git/commitdiff
wintun: delete all interfaces is not used anymore
authorJason A. Donenfeld <Jason@zx2c4.com>
Thu, 29 Aug 2019 18:22:15 +0000 (12:22 -0600)
committerJason A. Donenfeld <Jason@zx2c4.com>
Thu, 29 Aug 2019 18:22:15 +0000 (12:22 -0600)
tun/wintun/wintun_windows.go

index 81db608627a0543f15a91d25b871081747d4bf97..fb8b9088f991f44abfb840a90c4d952fed7e9359 100644 (file)
@@ -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)