Don't store the Wine version as a field

It's only needed for the initialisation message, and it doesn't throw so
doing this later shouldn't make a difference.
This commit is contained in:
Robbert van der Helm
2020-12-03 12:00:56 +01:00
parent 3c72ab31f8
commit c57fd67aa8
2 changed files with 1 additions and 8 deletions
+1 -2
View File
@@ -61,7 +61,6 @@ Vst2PluginBridge::Vst2PluginBridge(audioMasterCallback host_callback)
// This weird cast is not needed, but without it clang/ccls won't shut up
logger(static_cast<Vst2Logger&&>(Logger::create_from_environment(
create_logger_prefix(sockets.base_dir)))),
wine_version(get_wine_version()),
vst_host(
config.group
? std::unique_ptr<HostProcess>(std::make_unique<GroupHost>(
@@ -646,7 +645,7 @@ void Vst2PluginBridge::log_init_message() {
}
init_msg << "'" << std::endl;
init_msg << "wine version: '" << wine_version << "'" << std::endl;
init_msg << "wine version: '" << get_wine_version() << "'" << std::endl;
init_msg << std::endl;
// Print the path to the currently loaded configuration file and all
-6
View File
@@ -172,12 +172,6 @@ class Vst2PluginBridge {
*/
Vst2Logger logger;
/**
* The version of Wine currently in use. Used in the debug output on plugin
* startup.
*/
const std::string wine_version;
/**
* The Wine process hosting the Windows VST plugin.
*