From 6895ac6c4274221cc28124fa9eead033b18cb626 Mon Sep 17 00:00:00 2001 From: Joel Uckelman Date: Mon, 26 Sep 2011 22:31:45 +0200 Subject: Don't delete message id's from the post DB, as this prevents replies coming in over the list from being routed to the correct forum topic. --- src/Bridge.php | 2 -- src/BridgeImpl.php | 10 ---------- 2 files changed, 12 deletions(-) (limited to 'src') diff --git a/src/Bridge.php b/src/Bridge.php index a84c304..e4a813f 100644 --- a/src/Bridge.php +++ b/src/Bridge.php @@ -38,8 +38,6 @@ interface Bridge { public function registerByMessageId($messageId, $inReplyTo); public function unregisterMessage($editId); - - public function removePost($postId); } ?> diff --git a/src/BridgeImpl.php b/src/BridgeImpl.php index df21a89..c299efa 100644 --- a/src/BridgeImpl.php +++ b/src/BridgeImpl.php @@ -144,16 +144,6 @@ class BridgeImpl implements Bridge { } } - public function removePost($postId) { - throw_if_null($postId); - - $sql = 'DELETE FROM posts WHERE post_id = ' . $postId; - - $count = $this->db->exec($sql); - - return $count > 0; - } - protected function get_exactly_one_row($sql) { $result = $this->db->query($sql); -- cgit v1.2.3