Skip to content

Commit 9dc7502

Browse files
committed
Delete unused functions
1 parent c0cdeb6 commit 9dc7502

File tree

1 file changed

+0
-27
lines changed

1 file changed

+0
-27
lines changed

backend/api/Services/RobotService.cs

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -450,33 +450,6 @@ private async Task ApplyDatabaseUpdate(Installation? installation)
450450
);
451451
}
452452

453-
private async Task VerifyThatUserIsAuthorizedToUpdateDataForInstallation(
454-
Installation? installation
455-
)
456-
{
457-
var accessibleInstallationCodes = await accessRoleService.GetAllowedInstallationCodes();
458-
if (
459-
installation == null
460-
|| accessibleInstallationCodes.Contains(
461-
installation.InstallationCode.ToUpper(CultureInfo.CurrentCulture)
462-
)
463-
)
464-
return;
465-
466-
throw new UnauthorizedAccessException(
467-
$"User does not have permission to update robot in installation {installation.Name}"
468-
);
469-
}
470-
471-
private void NotifySignalROfUpdatedRobot(Robot robot, Installation installation)
472-
{
473-
_ = signalRService.SendMessageAsync(
474-
"Robot updated",
475-
installation,
476-
robot != null ? new RobotResponse(robot) : null
477-
);
478-
}
479-
480453
public void DetachTracking(FlotillaDbContext context, Robot robot)
481454
{
482455
context.Entry(robot).State = EntityState.Detached;

0 commit comments

Comments
 (0)