Skip to content

Commit

Permalink
chore: remove unused hcapi.DataCenterClient (#443)
Browse files Browse the repository at this point in the history
  • Loading branch information
samcday authored Feb 16, 2023
1 parent c9c0eb3 commit 1ffdcf5
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 41 deletions.
32 changes: 0 additions & 32 deletions internal/hcapi/datacenter.go

This file was deleted.

8 changes: 0 additions & 8 deletions internal/state/helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -127,14 +127,6 @@ func (c *State) NetworkZoneNames() []string {
return c.locationClient.NetworkZoneNames()
}

func (c *State) DataCenterNames() []string {
if c.dataCenterClient == nil {
client := c.Client()
c.dataCenterClient = &hcapi.DataCenterClient{DatacenterClient: &client.Datacenter}
}
return c.dataCenterClient.DataCenterNames()
}

func (c *State) SSHKeyNames() []string {
if c.sshKeyClient == nil {
client := c.Client()
Expand Down
1 change: 0 additions & 1 deletion internal/state/state.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ type State struct {
isoClient *hcapi.ISOClient
imageClient *hcapi.ImageClient
locationClient *hcapi.LocationClient
dataCenterClient *hcapi.DataCenterClient
sshKeyClient *hcapi.SSHKeyClient
volumeClient *hcapi.VolumeClient
floatingIPClient *hcapi.FloatingIPClient
Expand Down

0 comments on commit 1ffdcf5

Please sign in to comment.