mirror of
https://github.com/ElementsProject/lightning.git
synced 2024-11-20 02:27:51 +01:00
lightningd: remove deprecated plugin entries.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> Changelog-Removed: JSON API: `listconfigs` duplicated "plugin" paths (deprecated 0.8.0)
This commit is contained in:
parent
eab14768a8
commit
99ff474308
@ -1559,18 +1559,8 @@ void json_add_opt_plugins_array(struct json_stream *response,
|
|||||||
void json_add_opt_plugins(struct json_stream *response,
|
void json_add_opt_plugins(struct json_stream *response,
|
||||||
const struct plugins *plugins)
|
const struct plugins *plugins)
|
||||||
{
|
{
|
||||||
struct plugin *p;
|
|
||||||
|
|
||||||
json_add_opt_plugins_array(response, "plugins", plugins, false);
|
json_add_opt_plugins_array(response, "plugins", plugins, false);
|
||||||
json_add_opt_plugins_array(response, "important-plugins", plugins, true);
|
json_add_opt_plugins_array(response, "important-plugins", plugins, true);
|
||||||
|
|
||||||
/* DEPRECATED: duplicated JSON "plugin" entries */
|
|
||||||
if (deprecated_apis) {
|
|
||||||
list_for_each(&plugins->plugins, p, list) {
|
|
||||||
json_add_string(response, p->important ? "important-plugin" : "plugin", p->cmd);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void json_add_opt_disable_plugins(struct json_stream *response,
|
void json_add_opt_disable_plugins(struct json_stream *response,
|
||||||
|
Loading…
Reference in New Issue
Block a user