From 03608870ccff158f1b7ae8ecfdc2013aea4c9968 Mon Sep 17 00:00:00 2001 From: Robbert van der Helm Date: Tue, 14 Apr 2020 16:10:42 +0200 Subject: [PATCH] Remove now unused Editor reference --- src/wine-host/plugin-bridge.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/wine-host/plugin-bridge.cpp b/src/wine-host/plugin-bridge.cpp index 57f9d3ed..0854dc93 100644 --- a/src/wine-host/plugin-bridge.cpp +++ b/src/wine-host/plugin-bridge.cpp @@ -271,9 +271,8 @@ intptr_t PluginBridge::dispatch_wrapper(AEffect* plugin, class HostCallbackDataConverter : DefaultDataConverter { public: HostCallbackDataConverter(AEffect* plugin, - Editor& editor, std::optional& time_info) - : plugin(plugin), editor(editor), time_info(time_info) {} + : plugin(plugin), time_info(time_info) {} std::optional read(const int opcode, const int index, @@ -350,8 +349,6 @@ class HostCallbackDataConverter : DefaultDataConverter { private: AEffect* plugin; - // TODO: Clean up - Editor& editor; std::optional& time_info; }; @@ -361,7 +358,7 @@ intptr_t PluginBridge::host_callback(AEffect* effect, intptr_t value, void* data, float option) { - HostCallbackDataConverter converter(effect, editor, time_info); + HostCallbackDataConverter converter(effect, time_info); return send_event(vst_host_callback, host_callback_semaphore, converter, std::nullopt, opcode, index, value, data, option); }