summaryrefslogtreecommitdiff
path: root/src/news.c
diff options
context:
space:
mode:
authorRobin Burchell w00t@inspircd.org <Robin Burchell w00t@inspircd.org@5417fbe8-f217-4b02-8779-1006273d7864>2008-11-02 23:50:53 +0000
committerRobin Burchell w00t@inspircd.org <Robin Burchell w00t@inspircd.org@5417fbe8-f217-4b02-8779-1006273d7864>2008-11-02 23:50:53 +0000
commitec9dafb778cae465379f64bf0a0f997dbb4603ab (patch)
tree2a908a3c4bcd4f1fa7e137766ff1349909b13f1c /src/news.c
parent232d1b5e88c62ef3e2dae4a03353da817a3b89dc (diff)
Rip out SQL. It's utterly useless in current implementation.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1502 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/news.c')
-rw-r--r--src/news.c31
1 files changed, 0 insertions, 31 deletions
diff --git a/src/news.c b/src/news.c
index 3fffee433..0d0cc2518 100644
--- a/src/news.c
+++ b/src/news.c
@@ -232,37 +232,6 @@ void save_news()
#undef SAFE
-void save_rdb_news()
-{
-#ifdef USE_RDB
- int i;
- NewsItem *ni;
-
- if (!rdb_open())
- return;
-
- if (rdb_tag_table("anope_os_news") == 0) {
- alog("Unable to tag table 'anope_os_news' - News RDB save failed.");
- return;
- }
-
- for (i = 0; i < nnews; i++) {
- ni = &news[i];
- if (rdb_save_news(ni) == 0) {
- alog("Unable to save NewsItem %d - News RDB save failed.", ni->num);
- return;
- }
- }
-
- if (rdb_clean_table("anope_os_news") == 0) {
- alog("Unable to clean table 'anope_os_news' - News RDB save failed.");
- return;
- }
-
- rdb_close();
-#endif
-}
-
/*************************************************************************/
/***************************** News display ******************************/
/*************************************************************************/