Skip to content

Commit

Permalink
Remove unused 'IsExistInstance'
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewSirenko committed Feb 16, 2024
1 parent a894a85 commit 1761aa7
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 23 deletions.
8 changes: 0 additions & 8 deletions pkg/cloud/cloud.go
Original file line number Diff line number Diff line change
Expand Up @@ -963,14 +963,6 @@ func (c *cloud) GetDiskByID(ctx context.Context, volumeID string) (*Disk, error)
}, nil
}

func (c *cloud) IsExistInstance(ctx context.Context, nodeID string) bool {
instance, err := c.getInstance(ctx, nodeID)
if err != nil || instance == nil {
return false
}
return true
}

func (c *cloud) CreateSnapshot(ctx context.Context, volumeID string, snapshotOptions *SnapshotOptions) (snapshot *Snapshot, err error) {
descriptions := "Created by AWS EBS CSI driver for volume " + volumeID

Expand Down
1 change: 0 additions & 1 deletion pkg/cloud/cloud_interface.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ type Cloud interface {
WaitForAttachmentState(ctx context.Context, volumeID, expectedState string, expectedInstance string, expectedDevice string, alreadyAssigned bool) (*ec2.VolumeAttachment, error)
GetDiskByName(ctx context.Context, name string, capacityBytes int64) (disk *Disk, err error)
GetDiskByID(ctx context.Context, volumeID string) (disk *Disk, err error)
IsExistInstance(ctx context.Context, nodeID string) (success bool)
CreateSnapshot(ctx context.Context, volumeID string, snapshotOptions *SnapshotOptions) (snapshot *Snapshot, err error)
DeleteSnapshot(ctx context.Context, snapshotID string) (success bool, err error)
GetSnapshotByName(ctx context.Context, name string) (snapshot *Snapshot, err error)
Expand Down
14 changes: 0 additions & 14 deletions pkg/cloud/mock_cloud.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 1761aa7

Please sign in to comment.