Skip to content

Commit

Permalink
chore: remove unused createTimestampFromString function
Browse files Browse the repository at this point in the history
  • Loading branch information
David-T-White committed Sep 27, 2023
1 parent d3acd84 commit 6ca0e8b
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions pkg/controller/snapshotter.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,10 @@ import (
"fmt"
"math"
"strconv"
"time"

storageapitypes "github.com/Seagate/seagate-exos-x-api-go/pkg/common"
"github.com/Seagate/seagate-exos-x-csi/pkg/common"
"github.com/container-storage-interface/spec/lib/go/csi"
"github.com/golang/protobuf/ptypes"
"github.com/golang/protobuf/ptypes/timestamp"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"
"k8s.io/klog/v2"
Expand Down Expand Up @@ -171,12 +168,3 @@ func newSnapshotFromResponse(snapshot *storageapitypes.SnapshotObject) (*csi.Sna
ReadyToUse: true,
}, nil
}

func creationTimeFromString(creationTime string) (*timestamp.Timestamp, error) {
creationTimestamp, err := strconv.ParseInt(creationTime, 10, 64)
if err != nil {
return nil, err
}

return ptypes.TimestampProto(time.Unix(creationTimestamp, 0))
}

0 comments on commit 6ca0e8b

Please sign in to comment.