mirror of
https://github.com/letic/terraform-provider-google.git
synced 2024-10-01 16:21:06 +00:00
Delete dead code (#1411)
This commit is contained in:
parent
bc0b25e0c2
commit
7fd468c034
@ -16,10 +16,6 @@ import (
|
||||
"google.golang.org/api/googleapi"
|
||||
)
|
||||
|
||||
const emptyTFDefinition = `
|
||||
# empty def
|
||||
`
|
||||
|
||||
func TestExtractInitTimeout(t *testing.T) {
|
||||
t.Parallel()
|
||||
|
||||
|
@ -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)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user