From 0dd68d11cb1b1c341bc8f23cb87b780cf32c8e06 Mon Sep 17 00:00:00 2001
From: Mikael Nordfeldth <mmn@hethane.se>
Date: Sat, 6 May 2017 14:48:04 +0200
Subject: [PATCH] What just happened? Not sure if me or git caused duplicate
 code.

---
 classes/Notice.php | 23 -----------------------
 1 file changed, 23 deletions(-)

diff --git a/classes/Notice.php b/classes/Notice.php
index b22b4296e0..89c30d25fd 100644
--- a/classes/Notice.php
+++ b/classes/Notice.php
@@ -3267,27 +3267,4 @@ class Notice extends Managed_DataObject
     public function setPref($namespace, $topic, $data) {
         return Notice_prefs::setData($this, $namespace, $topic, $data);
     }
-
-    public function delPref($namespace, $topic) {
-        return Notice_prefs::setData($this, $namespace, $topic, null);
-    }
-
-    public function getPref($namespace, $topic, $default=null) {
-        // If you want an exception to be thrown, call Notice_prefs::getData directly
-        try {
-            return Notice_prefs::getData($this, $namespace, $topic, $default);
-        } catch (NoResultException $e) {
-            return null;
-        }
-    }
-
-    // The same as getPref but will fall back to common_config value for the same namespace/topic
-    public function getConfigPref($namespace, $topic)
-    {
-        return Notice_prefs::getConfigData($this, $namespace, $topic);
-    }
-
-    public function setPref($namespace, $topic, $data) {
-        return Notice_prefs::setData($this, $namespace, $topic, $data);
-    }
 }
-- 
2.39.5