Skip to content

Commit

Permalink
Renamed "removeValueKeyPair" to "removeKeyValuePair"
Browse files Browse the repository at this point in the history
  • Loading branch information
rebeloper committed Oct 23, 2017
1 parent 47c8e85 commit 52df066
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion SwiftyPlistManager/SwiftyPlistManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ public class SwiftyPlistManager {

}

public func removeValueKeyPair(for key: String, fromPlistWithName: String, completion:(_ error :SwiftyPlistManagerError?) -> ()) {
public func removeKeyValuePair(for key: String, fromPlistWithName: String, completion:(_ error :SwiftyPlistManagerError?) -> ()) {
plistManagerPrint("Starting to remove Key-Value pair for '\(key)' from '\(fromPlistWithName).plist' . . .")
if keyAlreadyExists(key: key, inPlistWithName: fromPlistWithName) {
if let plist = Plist(name: fromPlistWithName) {
Expand Down
2 changes: 1 addition & 1 deletion SwiftyPlistManager/ViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ class ViewController: UIViewController {
// Once in a while you might want to remove a value-key pair

/*
SwiftyPlistManager.shared.removeValueKeyPair(for: thirdKey, fromPlistWithName: dataPlistName) { (err) in
SwiftyPlistManager.shared.removeKeyValuePair(for: thirdKey, fromPlistWithName: dataPlistName) { (err) in
if err == nil {
print("-------------> Key-Value pair successfully removed at Key '\(thirdKey)' from '\(dataPlistName).plist'")
}
Expand Down

0 comments on commit 52df066

Please sign in to comment.