Skip to content

Commit 66f7571

Browse files
committed
Removed the unused function
1 parent 0e10ec2 commit 66f7571

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

ibm/utils.go

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -232,24 +232,6 @@ func ensureTimestamp(ctx context.Context, d *transform.TransformData) (interface
232232
return t.String(), nil
233233
}
234234

235-
func crnToAccountID(ctx context.Context, d *transform.TransformData) (interface{}, error) {
236-
if d.Value == nil {
237-
return "", nil
238-
}
239-
crn := types.ToString(d.Value)
240-
crnParts := strings.Split(crn, ":")
241-
accountIDPart := crnParts[6]
242-
if accountIDPart == "" {
243-
return "", nil
244-
}
245-
aParts := strings.Split(accountIDPart, "/")
246-
accountID := aParts[1]
247-
if accountID == "" {
248-
return "", nil
249-
}
250-
return accountID, nil
251-
}
252-
253235
func handleNilString(_ context.Context, d *transform.TransformData) (interface{}, error) {
254236
value := types.SafeString(d.Value)
255237
if value == "" {

0 commit comments

Comments
 (0)