From 90a41287be1bf230c34cb9837b0910103f662f12 Mon Sep 17 00:00:00 2001 From: Robbert van der Helm Date: Sat, 29 Oct 2022 16:13:23 +0200 Subject: [PATCH] Remove old todos --- src/plugin/bridges/clap.h | 50 ------------------------------------ src/wine-host/bridges/clap.h | 2 -- 2 files changed, 52 deletions(-) diff --git a/src/plugin/bridges/clap.h b/src/plugin/bridges/clap.h index 2162b60d..065a4352 100644 --- a/src/plugin/bridges/clap.h +++ b/src/plugin/bridges/clap.h @@ -141,47 +141,6 @@ class ClapPluginBridge : PluginBridge> { std::pair(logger_, true)); } - // TODO: Do we need this for CLAP? If we do, update the docstring - // /** - // * Send a message, and allow other threads to call functions on _this - // * thread_ while we're waiting for a response. This lets us execute - // * functions from the host's GUI thread while it is also calling - // functions - // * from that same thread. Because of that, we also know that while this - // * function is being called the host won't be able to handle any - // `IRunLoop` - // * events. We need this to support REAPER, because REAPER requires - // function - // * calls involving the GUI to be run from the GUI thread. Grep for - // * `run_gui_task` for instances of this. - // * - // * We use the same trick in `ClapBridge`. - // */ - // template - // typename T::Response send_mutually_recursive_message(const T& object) { - // return mutual_recursion_.fork([&]() { return send_message(object); - // }); - // } - - // /** - // * If `send_mutually_recursive_message()` is currently being called, then - // * run `fn` on the thread that's currently calling that function and - // return - // * the result of the call. If there's currently no mutually recursive - // * function call going on, this will return an `std::nullopt`, and the - // * caller should call `fn` itself. - // * - // * @return The result of calling `fn`, if `fn` was called. - // * - // * @see ClapPlugViewProxyImpl::run_gui_task - // */ - // template - // std::optional> - // maybe_run_on_mutual_recursion_thread( - // F&& fn) { - // return mutual_recursion_.maybe_handle(std::forward(fn)); - // } - /** * The logging facility used for this instance of yabridge. Wraps around * `PluginBridge::generic_logger`. @@ -229,13 +188,4 @@ class ClapPluginBridge : PluginBridge> { * processing, but it's still something we should avoid at all costs. */ std::shared_mutex plugin_proxies_mutex_; - - // TODO: Do we need this in CLAP? - // /** - // * Used in `ClapBridge::send_mutually_recursive_message()` to be able to - // * execute functions from that same calling thread while we're waiting - // for a - // * response. This is used in `ClapPlugViewProxyImpl::run_loop_tasks()`. - // */ - // MutualRecursionHelper mutual_recursion_; }; diff --git a/src/wine-host/bridges/clap.h b/src/wine-host/bridges/clap.h index b2ef1619..fb6ce13b 100644 --- a/src/wine-host/bridges/clap.h +++ b/src/wine-host/bridges/clap.h @@ -327,8 +327,6 @@ class ClapBridge : public HostBridge { * * This only has to be used instead of directly writing to `std::cerr` when * the message should be hidden on lower verbosity levels. - * - * TODO: Actually use this */ ClapLogger logger_;