summaryrefslogtreecommitdiff
path: root/sphinx/websupport/storage/sqlalchemystorage.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2010-11-21 20:47:32 +0100
committerGeorg Brandl <georg@python.org>2010-11-21 20:47:32 +0100
commitf9705fc5b7bbfb30870751da40c5f59218d77859 (patch)
treeb221bdd10710a29ff57381087a41a865dad55d87 /sphinx/websupport/storage/sqlalchemystorage.py
parent6d6f7997101df6ff65a9a3f7c5e053b9111feed2 (diff)
downloadsphinx-git-f9705fc5b7bbfb30870751da40c5f59218d77859.tar.gz
Remove comment rejection; delete is fine for that now.
Diffstat (limited to 'sphinx/websupport/storage/sqlalchemystorage.py')
-rw-r--r--sphinx/websupport/storage/sqlalchemystorage.py8
1 files changed, 0 insertions, 8 deletions
diff --git a/sphinx/websupport/storage/sqlalchemystorage.py b/sphinx/websupport/storage/sqlalchemystorage.py
index 78991639d..b58b1198e 100644
--- a/sphinx/websupport/storage/sqlalchemystorage.py
+++ b/sphinx/websupport/storage/sqlalchemystorage.py
@@ -172,11 +172,3 @@ class SQLAlchemyStorage(StorageBackend):
session.commit()
session.close()
-
- def reject_comment(self, comment_id):
- session = Session()
- comment = session.query(Comment).filter(Comment.id == comment_id).one()
- session.delete(comment)
-
- session.commit()
- session.close()