lightningd: remove unused db stubs.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2018-01-03 11:46:49 +10:30
committed by Christian Decker
parent a1d215a46d
commit 4dea3c4747

View File

@@ -36,34 +36,6 @@ char *bitcoin_datadir;
struct backtrace_state *backtrace_state;
void db_resolve_invoice(struct lightningd *ld,
const char *label);
void db_resolve_invoice(struct lightningd *ld,
const char *label)
{
/* FIXME */
}
bool db_new_invoice(struct lightningd *ld,
u64 msatoshi,
const char *label,
const struct preimage *r);
bool db_new_invoice(struct lightningd *ld,
u64 msatoshi,
const char *label,
const struct preimage *r)
{
/* FIXME */
return true;
}
bool db_remove_invoice(struct lightningd *ld, const char *label);
bool db_remove_invoice(struct lightningd *ld, const char *label)
{
/* FIXME */
return true;
}
static struct lightningd *new_lightningd(const tal_t *ctx,
struct log_book *log_book)
{
@@ -336,11 +308,6 @@ int main(int argc, char *argv[])
type_to_string(ltmp, struct pubkey, &ld->id),
ld->alias, tal_hex(ltmp, ld->rgb), version());
#if 0
/* Load peers from database. */
db_load_peers(dstate);
#endif
for (;;) {
struct timer *expired;
void *v = io_loop(&ld->timers, &expired);