From 9fd81ab06daacdeeac859e414d46a6ed8f5159c6 Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Wed, 1 Nov 2017 11:51:57 +1030 Subject: [PATCH] db: make db_exec() an internal function. Every caller is using prepared statements now. Signed-off-by: Rusty Russell --- wallet/db.c | 2 +- wallet/db.h | 6 ------ 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/wallet/db.c b/wallet/db.c index 86657a1d7..bc4792a82 100644 --- a/wallet/db.c +++ b/wallet/db.c @@ -161,7 +161,7 @@ static void db_do_exec(const char *caller, struct db *db, const char *cmd) } } -void PRINTF_FMT(3, 4) +static void PRINTF_FMT(3, 4) db_exec(const char *caller, struct db *db, const char *fmt, ...) { va_list ap; diff --git a/wallet/db.h b/wallet/db.h index 8b8e3f89f..2e7d18612 100644 --- a/wallet/db.h +++ b/wallet/db.h @@ -38,12 +38,6 @@ struct db *db_setup(const tal_t *ctx); sqlite3_stmt *PRINTF_FMT(3, 4) db_query(const char *caller, struct db *db, const char *fmt, ...); -/** - * db_exec - execute a statement, call fatal() if it fails. - */ -void PRINTF_FMT(3, 4) - db_exec(const char *caller, struct db *db, const char *fmt, ...); - /** * db_begin_transaction - Begin a transaction *