| 646 | } |
| 647 | |
| 648 | void DataProcessorService::clearTransformsForPlugin(std::string_view plugin_id) { |
| 649 | std::vector<std::string> keys; |
| 650 | for (const auto& [key, recipe] : transform_recipes_) { |
| 651 | if (recipe.owner_plugin == plugin_id) { |
| 652 | keys.push_back(key); |
| 653 | } |
| 654 | } |
| 655 | for (const auto& key : keys) { |
| 656 | (void)removeTransform(key); |
| 657 | } |
| 658 | } |
| 659 | |
| 660 | void DataProcessorService::clearAllTransforms() { |
| 661 | std::vector<std::string> keys; |