summaryrefslogtreecommitdiff
path: root/src/hostserv.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/hostserv.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/hostserv.c')
-rw-r--r--src/hostserv.c48
1 files changed, 0 insertions, 48 deletions
diff --git a/src/hostserv.c b/src/hostserv.c
index cdf43889c..52dfbc0d9 100644
--- a/src/hostserv.c
+++ b/src/hostserv.c
@@ -314,28 +314,11 @@ char *getvIdent(char *nick)
/*************************************************************************/
void delHostCore(char *nick)
{
-#ifdef USE_RDB
- static char clause[128];
- char *q_nick;
-#endif
HostCore *tmp;
bool found = false;
tmp = findHostCore(head, nick, &found);
if (found) {
head = deleteHostCore(head, tmp);
-
-#ifdef USE_RDB
- /* Reflect this change in the database right away. */
- if (rdb_open()) {
- q_nick = rdb_quote(nick);
- snprintf(clause, sizeof(clause), "nick='%s'", q_nick);
- if (rdb_scrub_table("anope_hs_core", clause) == 0)
- alog("Unable to scrub table 'anope_hs_core' - HostServ RDB update failed.");
- rdb_close();
- free(q_nick);
- }
-#endif
-
}
}
@@ -497,37 +480,6 @@ void save_hs_dbase(void)
#undef SAFE
-void save_hs_rdb_dbase(void)
-{
-#ifdef USE_RDB
- HostCore *current;
-
- if (!rdb_open())
- return;
-
- if (rdb_tag_table("anope_hs_core") == 0) {
- alog("Unable to tag table 'anope_hs_core' - HostServ RDB save failed.");
- rdb_close();
- return;
- }
-
- current = head;
- while (current != NULL) {
- if (rdb_save_hs_core(current) == 0) {
- alog("Unable to save HostCore for %s - HostServ RDB save failed.", current->nick);
- rdb_close();
- return;
- }
- current = current->next;
- }
-
- if (rdb_clean_table("anope_hs_core") == 0)
- alog("Unable to clean table 'anope_hs_core' - HostServ RDB save failed.");
-
- rdb_close();
-#endif
-}
-
/*************************************************************************/
/* End of Load/Save Functions */
/*************************************************************************/