Browse Source

Remove the 'signal_startup' member of the plugin struct

It's set but not used
pull/2938/head
darosior 5 years ago
committed by neil saitug
parent
commit
a2c00d42f2
  1. 5
      lightningd/plugin.c

5
lightningd/plugin.c

@ -87,7 +87,6 @@ void plugin_register(struct plugins *plugins, const char* path TAKES)
p->js_arr = tal_arr(p, struct json_stream *, 0);
p->used = 0;
p->subscriptions = NULL;
p->signal_startup = false;
p->log = new_log(p, plugins->log_book, "plugin-%s",
path_basename(tmpctx, p->cmd));
@ -829,10 +828,8 @@ static void plugin_manifest_cb(const char *buffer,
}
dynamictok = json_get_member(buffer, resulttok, "dynamic");
if (dynamictok && json_to_bool(buffer, dynamictok, &dynamic_plugin)) {
plugin->signal_startup = true;
if (dynamictok && json_to_bool(buffer, dynamictok, &dynamic_plugin))
plugin->dynamic = dynamic_plugin;
}
if (!plugin_opts_add(plugin, buffer, resulttok) ||
!plugin_rpcmethods_add(plugin, buffer, resulttok) ||

Loading…
Cancel
Save