Delete dead code (#1411)

This commit is contained in:
Vincent Roseberry 2018-05-01 12:31:43 -07:00 committed by GitHub
parent bc0b25e0c2
commit 7fd468c034
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 0 additions and 16 deletions

View File

@ -16,10 +16,6 @@ import (
"google.golang.org/api/googleapi"
)
const emptyTFDefinition = `
# empty def
`
func TestExtractInitTimeout(t *testing.T) {
t.Parallel()

View File

@ -118,18 +118,6 @@ func getZonalBetaResourceFromRegion(getResource func(string) (interface{}, error
return nil, nil
}
func getNetworkNameFromSelfLink(network string) (string, error) {
if !strings.HasPrefix(network, "https://www.googleapis.com/compute/") {
return network, nil
}
// extract the network name from SelfLink URL
networkName := network[strings.LastIndex(network, "/")+1:]
if networkName == "" {
return "", fmt.Errorf("network url not valid")
}
return networkName, nil
}
func getRouterLockName(region string, router string) string {
return fmt.Sprintf("router/%s/%s", region, router)
}