summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoruckelman <uckelman@nomic.net>2010-04-13 22:16:59 +0000
committeruckelman <uckelman@nomic.net>2010-04-13 22:16:59 +0000
commit6d8c656e6598c83c8a45dc9aaaf61d8cd2048b5d (patch)
tree6ad52bac1d19f08d0f1bd22a273a32b7817720af
parent5500ac2e1beacd4a15cdb2715649749b9adae8c5 (diff)
Removed unused methods.
git-svn-id: https://vassalengine.svn.sourceforge.net/svnroot/vassalengine/site-src/trunk@6712 67b53d14-2c14-4ace-a08f-0dab2b34000c
-rw-r--r--src/PhpBB3.php24
-rw-r--r--test/PhpBB3Test.php33
2 files changed, 0 insertions, 57 deletions
diff --git a/src/PhpBB3.php b/src/PhpBB3.php
index 3c6a508..381c9a4 100644
--- a/src/PhpBB3.php
+++ b/src/PhpBB3.php
@@ -44,18 +44,6 @@ class PhpBB3 {
return $names[$id];
}
- public function getTopicId($postId) {
- throw_if_null($post_id);
-
- global $db;
-
- $sql = 'SELECT topic_id FROM ' . POSTS_TABLE . ' ' .
- 'WHERE post_id = ' . $post_id;
-
- $row = $this->get_exactly_one_row($sql);
- return $row ? $row['topic_id'] : false;
- }
-
public function getTopicAndForumIds($post_id) {
throw_if_null($post_id);
@@ -132,18 +120,6 @@ class PhpBB3 {
return $row ? $row['post_time'] : false;
}
- public function getFirstPostId($topicId) {
- throw_if_null($topicId);
-
- global $db;
-
- $sql = 'SELECT topic_first_post_id FROM ' . TOPICS_TABLE . ' ' .
- 'WHERE topic_id = ' . $topicId;
-
- $row = $this->get_exactly_one_row($sql);
- return $row ? $row['topic_first_post_id'] : false;
- }
-
public function postMessage($postType, $forumId, $topicId, $msg) {
throw_if_null($msg);
diff --git a/test/PhpBB3Test.php b/test/PhpBB3Test.php
index d43b386..fbd68e2 100644
--- a/test/PhpBB3Test.php
+++ b/test/PhpBB3Test.php
@@ -67,23 +67,6 @@ EOF;
}
/**
- * @dataProvider providerGetTopicId
- */
- public function testGetTopicId($post_id, $expected, $ex) {
- if ($ex) $this->setExpectedException($ex);
- $run = 'getTopicId(' . $post_id . ')';
- $this->assertEquals($expected, $this->exec_kludge($run));
- }
-
- public function providerGetTopicId() {
- return array(
- array(null, null, 'Exception'),
- array('bogus', false, null),
- array(2, 2, null)
- );
- }
-
- /**
* @dataProvider providerGetTopicAndForumIds
*/
public function testGetTopicAndForumIds($post_id, $expected, $ex) {
@@ -149,20 +132,4 @@ EOF;
return array(
);
}
-
- /**
- * @dataProvider providerGetFirstPostId
- */
- public function testGetFirstPostId($topic_id, $expected, $ex) {
- $this->markTestIncomplete();
-
- if ($ex) $this->setExpectedException($ex);
- $run = 'getFirstPostId(' . $topic_id . ')';
- $this->assertEquals($expected, $this->exec_kludge($run));
- }
-
- public function providerGetFirstPostId() {
- return array(
- );
- }
}