Skip to content

Commit

Permalink
Remove deprecated function call (#99)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielchatfield authored May 23, 2023
1 parent 4f19d68 commit 45f7288
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
6 changes: 0 additions & 6 deletions macos.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,3 @@ var accessibleTypeRef = map[Accessible]C.CFTypeRef{
// Only available in 10.10
//AccessibleWhenPasscodeSetThisDeviceOnly: C.CFTypeRef(C.kSecAttrAccessibleWhenPasscodeSetThisDeviceOnly),
}

// DeleteItemRef deletes a keychain item reference.
func DeleteItemRef(ref C.CFTypeRef) error {
errCode := C.SecKeychainItemDelete(C.SecKeychainItemRef(ref))
return checkError(errCode)
}
2 changes: 1 addition & 1 deletion macos_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ func TestGenericPasswordRef(t *testing.T) {
} else if ref == 0 {
t.Fatal("Missing result")
} else {
err = DeleteItemRef(ref)
err = DeleteItem(item)
if err != nil {
t.Fatal(err)
}
Expand Down

0 comments on commit 45f7288

Please sign in to comment.