Skip to content

Commit

Permalink
refactor: remove unnecessary unbind methods
Browse files Browse the repository at this point in the history
  • Loading branch information
mattdibi committed Oct 10, 2023
1 parent 3ffc9f3 commit d674d88
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,18 +23,15 @@
cardinality="1..1"
interface="org.eclipse.kura.deployment.agent.DeploymentAgentService"
bind="setDeploymentAgentService"
unbind="unsetDeploymentAgentService"
policy="static"/>
<reference name="DeploymentAdmin"
cardinality="1..1"
interface="org.osgi.service.deploymentadmin.DeploymentAdmin"
bind="setDeploymentAdmin"
unbind="unsetDeploymentAdmin"
policy="static"/>
<reference name="UserAdmin"
cardinality="0..1"
interface="org.osgi.service.useradmin.UserAdmin"
bind="setUserAdmin"
unbind="unsetUserAdmin"
policy="static"/>
</scr:component>
Original file line number Diff line number Diff line change
Expand Up @@ -54,32 +54,14 @@ public void setUserAdmin(UserAdmin userAdmin) {
this.userAdmin.createRole(KURA_PERMISSION_REST_DEPLOY_ROLE, Role.GROUP);
}

public void unsetUserAdmin(UserAdmin userAdmin) {
if (this.userAdmin == userAdmin) {
this.userAdmin = null;
}
}

public void setDeploymentAdmin(DeploymentAdmin deploymentAdmin) {
this.deploymentAdmin = deploymentAdmin;
}

public void unsetDeploymentAdmin(DeploymentAdmin deploymentAdmin) {
if (this.deploymentAdmin == deploymentAdmin) {
this.deploymentAdmin = null;
}
}

public void setDeploymentAgentService(DeploymentAgentService deploymentAgentService) {
this.deploymentAgentService = deploymentAgentService;
}

public void unsetDeploymentAgentService(DeploymentAgentService deploymentAgentService) {
if (this.deploymentAgentService == deploymentAgentService) {
this.deploymentAgentService = null;
}
}

/**
* GET method.
*
Expand Down

0 comments on commit d674d88

Please sign in to comment.