From 107c7ec0e312f1c3389225e1114e9946a29d1cd5 Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Wed, 7 Apr 2021 11:58:05 +0930 Subject: [PATCH] lightningd: remove unused `original_directory` field. Signed-off-by: Rusty Russell --- lightningd/lightningd.c | 5 ----- lightningd/lightningd.h | 3 --- 2 files changed, 8 deletions(-) diff --git a/lightningd/lightningd.c b/lightningd/lightningd.c index ca3ae7a35..edf4281c2 100644 --- a/lightningd/lightningd.c +++ b/lightningd/lightningd.c @@ -239,11 +239,6 @@ static struct lightningd *new_lightningd(const tal_t *ctx) */ jsonrpc_setup(ld); - /*~ We changed when we start plugins, messing up relative paths. - * This saves our original dirs so we can fixup and warn for the - * moment (0.7.2). */ - ld->original_directory = path_cwd(ld); - /*~ We run a number of plugins (subprocesses that we talk JSON-RPC with) * alongside this process. This allows us to have an easy way for users * to add their own tools without having to modify the c-lightning source diff --git a/lightningd/lightningd.h b/lightningd/lightningd.h index 4e159b12b..83e1f899d 100644 --- a/lightningd/lightningd.h +++ b/lightningd/lightningd.h @@ -251,9 +251,6 @@ struct lightningd { char *tor_service_password; bool pure_tor_setup; - /* Original directory for deprecated plugin-relative-to-cwd */ - const char *original_directory; - struct plugins *plugins; char *wallet_dsn;