Remove the 'signal_startup' member of the plugin struct

It's set but not used
This commit is contained in:
darosior 2019-08-05 15:37:45 +02:00 committed by neil saitug
parent 596972366d
commit a2c00d42f2

View File

@ -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) ||