summaryrefslogtreecommitdiff
path: root/src/operserv.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/operserv.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/operserv.c')
-rw-r--r--src/operserv.c65
1 files changed, 0 insertions, 65 deletions
diff --git a/src/operserv.c b/src/operserv.c
index 50e3e078c..c39790418 100644
--- a/src/operserv.c
+++ b/src/operserv.c
@@ -497,71 +497,6 @@ void save_os_dbase(void)
/*************************************************************************/
-void save_os_rdb_dbase(void)
-{
-#ifdef USE_RDB
- if (!rdb_open())
- return;
-
- if (rdb_tag_table("anope_os_akills") == 0) {
- alog("Unable to tag table 'anope_os_akills' - OperServ RDB save failed.");
- rdb_close();
- return;
- }
- if (rdb_tag_table("anope_os_sglines") == 0) {
- alog("Unable to tag table 'anope_os_sglines' - OperServ RDB save failed.");
- rdb_close();
- return;
- }
- if (rdb_tag_table("anope_os_sqlines") == 0) {
- alog("Unable to tag table 'anope_os_sqlines' - OperServ RDB save failed.");
- rdb_close();
- return;
- }
- if (rdb_tag_table("anope_os_szlines") == 0) {
- alog("Unable to tag table 'anope_os_szlines' - OperServ RDB save failed.");
- rdb_close();
- return;
- }
- /* We empty anope_os_core as required */
- if (rdb_empty_table("anope_os_core") == 0) {
- alog("Unable to empty table 'anope_os_core' - OperServ RDB save failed");
- rdb_close();
- return;
- }
-
- if (rdb_save_os_db
- (maxusercnt, maxusertime, &akills, &sglines, &sqlines,
- &szlines) == 0) {
- alog("Unable to save OperServ data - OperServ RDB save failed");
- rdb_close();
- return;
- }
-
- if (rdb_clean_table("anope_os_akills") == 0) {
- alog("Unable to clean table 'anope_os_akills' - OperServ RDB save failed.");
- rdb_close();
- return;
- }
- if (rdb_clean_table("anope_os_sglines") == 0) {
- alog("Unable to clean table 'anope_os_sglines' - OperServ RDB save failed.");
- rdb_close();
- return;
- }
- if (rdb_clean_table("anope_os_sqlines") == 0) {
- alog("Unable to clean table 'anope_os_sqlines' - OperServ RDB save failed.");
- rdb_close();
- return;
- }
- if (rdb_clean_table("anope_os_szlines") == 0)
- alog("Unable to clean table 'anope_os_szlines' - OperServ RDB save failed.");
-
- rdb_close();
-#endif
-}
-
-/*************************************************************************/
-
/* Removes the nick structure from OperServ lists. */
void os_remove_nick(NickCore * nc)