Skip to content

Commit

Permalink
Merge branch 'master' into pwielders-patch-1
Browse files Browse the repository at this point in the history
  • Loading branch information
pwielders authored Jan 31, 2024
2 parents c8b47e1 + e09d145 commit 8ea11c7
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 43 deletions.
7 changes: 0 additions & 7 deletions BluetoothControl/BluetoothControl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -233,13 +233,6 @@ namespace Plugin {
{
ASSERT(service != nullptr);

PluginHost::ISubSystem* subSystems(service->SubSystems());
ASSERT(subSystems != nullptr);
if (subSystems != nullptr) {
subSystems->Set(PluginHost::ISubSystem::NOT_BLUETOOTH, nullptr);
subSystems->Release();
}

if (Connector().IsOpen() == true) {

Exchange::JBluetoothControl::Unregister(*this);
Expand Down
11 changes: 0 additions & 11 deletions Compositor/Compositor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -217,17 +217,6 @@ namespace Plugin {

_service->Unregister(&_notification);

// We would actually need to handle setting the Graphics event in the CompositorImplementation. For now, we do it here.
PluginHost::ISubSystem* subSystems = _service->SubSystems();

ASSERT(subSystems != nullptr);

if (subSystems != nullptr) {
// Set Graphics event. We need to set up a handler for this at a later moment
subSystems->Set(PluginHost::ISubSystem::NOT_GRAPHICS, nullptr);
subSystems->Release();
}

if (_composition != nullptr) {
UnregisterAll();
_composition->Unregister(&_notification);
Expand Down
8 changes: 0 additions & 8 deletions Streamer/Streamer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -102,14 +102,6 @@ namespace Plugin {
connection->Terminate();
connection->Release();
}

PluginHost::ISubSystem* subSystem = service->SubSystems();
if (subSystem != nullptr) {
if (subSystem->IsActive(PluginHost::ISubSystem::STREAMING) == true) {
subSystem->Set(PluginHost::ISubSystem::NOT_STREAMING, nullptr);
subSystem->Release();
}
}
}

_service->Release();
Expand Down
8 changes: 0 additions & 8 deletions Svalbard/Svalbard.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -73,14 +73,6 @@ namespace Plugin {
{
ASSERT(service != nullptr);

PluginHost::ISubSystem* subSystems(service->SubSystems());
ASSERT(subSystems != nullptr);

if (subSystems != nullptr) {
subSystems->Set(PluginHost::ISubSystem::NOT_CRYPTOGRAPHY, nullptr);
subSystems->Release();
}

if (_service != nullptr) {
ASSERT(_service == service);

Expand Down
10 changes: 1 addition & 9 deletions WebServer/WebServer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ namespace Plugin {
return message;
}

/* virtual */ void WebServer::Deinitialize(PluginHost::IShell* service)
/* virtual */ void WebServer::Deinitialize(PluginHost::IShell* service VARIABLE_IS_NOT_USED)
{
if (_service != nullptr) {
ASSERT(_service == _service);
Expand All @@ -114,14 +114,6 @@ namespace Plugin {

if (_server != nullptr) {

PluginHost::ISubSystem* subSystem = service->SubSystems();
if (subSystem != nullptr) {
if (subSystem->IsActive(PluginHost::ISubSystem::WEBSOURCE) == true) {
subSystem->Set(PluginHost::ISubSystem::NOT_WEBSOURCE, nullptr);
subSystem->Release();
}
}

if (_memory != nullptr) {
_memory->Release();
_memory = nullptr;
Expand Down

0 comments on commit 8ea11c7

Please sign in to comment.