| 940 | } |
| 941 | |
| 942 | static void destroy_plugin_opt(struct plugin_opt *opt, |
| 943 | struct plugin *plugin) |
| 944 | { |
| 945 | opt_unregister(opt->name); |
| 946 | list_del_from(&plugin->plugin_opts, &opt->list); |
| 947 | /* If any configvars were added on `plugin start`, remove now */ |
| 948 | configvar_remove(&plugin->plugins->ld->configvars, |
| 949 | opt->name + 2, /* Skip -- */ |
| 950 | CONFIGVAR_PLUGIN_START, NULL); |
| 951 | } |
| 952 | |
| 953 | bool is_plugin_opt(const struct opt_table *ot) |
| 954 | { |
nothing calls this directly
no test coverage detected