From 783fb7ff1af4d942a7c09521295d2f9a321a68aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gwendal=20Roue=CC=81?= Date: Sun, 31 Jan 2016 15:40:32 +0100 Subject: [PATCH] Fix UserDefaults.removeObject(_:forKey:) --- Playgrounds/UserDefaults.playground/Contents.swift | 1 - 1 file changed, 1 deletion(-) diff --git a/Playgrounds/UserDefaults.playground/Contents.swift b/Playgrounds/UserDefaults.playground/Contents.swift index 90560d024..5a7e1ecf9 100644 --- a/Playgrounds/UserDefaults.playground/Contents.swift +++ b/Playgrounds/UserDefaults.playground/Contents.swift @@ -53,7 +53,6 @@ public class UserDefaults { public func removeObjectForKey(key: String) { createTableIfNeeded() try! db.execute("DELETE FROM \(UserDefaultsItemTableName) WHERE key = ?", arguments: [key]) - try! UserDefaultsItem.fetchOne(db, key: key)?.delete(db) } public func setBool(value: Bool, forKey key: String) {