From f9705fc5b7bbfb30870751da40c5f59218d77859 Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Sun, 21 Nov 2010 20:47:32 +0100 Subject: Remove comment rejection; delete is fine for that now. --- sphinx/websupport/storage/sqlalchemystorage.py | 8 -------- 1 file changed, 8 deletions(-) (limited to 'sphinx/websupport/storage/sqlalchemystorage.py') 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() -- cgit v1.2.1