Change plugin type to just local and remote

This commit is contained in:
Ted John committed 2020-04-26 14:35:03 +01:00
1 parent 08cdb831af
commit 2890faee0a
4 files changed
+10 -22

No files matched your search

+4 -6
View File
@@ -158,12 +158,10 @@ PluginMetadata Plugin::GetMetadata(const DukValue& dukMetadata)
PluginType Plugin::ParsePluginType(const std::string_view& type)
{
if (type == "server")
return PluginType::Server;
if (type == "client")
return PluginType::Client;
if (type == "server_client")
return PluginType::ServerClient;
if (type == "local")
return PluginType::Local;
if (type == "remote")
return PluginType::Remote;
throw std::invalid_argument("Unknown plugin type.");
}