Skip to content

Commit

Permalink
Remove unused IsarStep topic
Browse files Browse the repository at this point in the history
  • Loading branch information
Eddasol committed Dec 13, 2024
1 parent 0af7ea9 commit 2d29ac2
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 41 deletions.
32 changes: 0 additions & 32 deletions backend/api/MQTT/MessageModels/IsarStep.cs

This file was deleted.

5 changes: 0 additions & 5 deletions backend/api/MQTT/MqttService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,6 @@ public MqttService(ILogger<MqttService> logger, IConfiguration config)
public static event EventHandler<MqttReceivedArgs>? MqttIsarRobotHeartbeatReceived;
public static event EventHandler<MqttReceivedArgs>? MqttIsarMissionReceived;
public static event EventHandler<MqttReceivedArgs>? MqttIsarTaskReceived;
public static event EventHandler<MqttReceivedArgs>? MqttIsarStepReceived;
public static event EventHandler<MqttReceivedArgs>? MqttIsarBatteryReceived;
public static event EventHandler<MqttReceivedArgs>? MqttIsarPressureReceived;
public static event EventHandler<MqttReceivedArgs>? MqttIsarPoseReceived;
Expand Down Expand Up @@ -137,9 +136,6 @@ private Task OnMessageReceived(MqttApplicationMessageReceivedEventArgs messageRe
case Type type when type == typeof(IsarTaskMessage):
OnIsarTopicReceived<IsarTaskMessage>(content);
break;
case Type type when type == typeof(IsarStepMessage):
OnIsarTopicReceived<IsarStepMessage>(content);
break;
case Type type when type == typeof(IsarBatteryMessage):
OnIsarTopicReceived<IsarBatteryMessage>(content);
break;
Expand Down Expand Up @@ -296,7 +292,6 @@ private void OnIsarTopicReceived<T>(string content) where T : MqttMessage
_ when type == typeof(IsarRobotHeartbeatMessage) => MqttIsarRobotHeartbeatReceived,
_ when type == typeof(IsarMissionMessage) => MqttIsarMissionReceived,
_ when type == typeof(IsarTaskMessage) => MqttIsarTaskReceived,
_ when type == typeof(IsarStepMessage) => MqttIsarStepReceived,
_ when type == typeof(IsarBatteryMessage) => MqttIsarBatteryReceived,
_ when type == typeof(IsarPressureMessage) => MqttIsarPressureReceived,
_ when type == typeof(IsarPoseMessage) => MqttIsarPoseReceived,
Expand Down
3 changes: 0 additions & 3 deletions backend/api/MQTT/MqttTopics.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,6 @@ public static class MqttTopics
{
"isar/+/task", typeof(IsarTaskMessage)
},
{
"isar/+/step", typeof(IsarStepMessage)
},
{
"isar/+/battery", typeof(IsarBatteryMessage)
},
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/models/Inspection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Position } from './Position'

export interface Inspection {
id: string
isarStepId?: string
isarTaskId?: string
status: InspectionStatus
isCompleted: boolean
inspectionType: InspectionType
Expand Down

0 comments on commit 2d29ac2

Please sign in to comment.