Skip to content

Commit

Permalink
Remove deprecated auto-localize
Browse files Browse the repository at this point in the history
  • Loading branch information
Eddasol committed Feb 17, 2025
1 parent 9d8aa7c commit 9251ef6
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 10 deletions.
1 change: 0 additions & 1 deletion backend/api/Database/Models/Robot.cs
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,6 @@ public enum RobotCapabilitiesEnum
take_thermal_video,
take_gas_measurement,
record_audio,
auto_localize,
auto_return_to_home,
return_to_home,
}
Expand Down
8 changes: 0 additions & 8 deletions backend/api/Services/LocalizationService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -62,14 +62,6 @@ string inspectionAreaId
throw new RobotNotFoundException(errorMessage);
}

if (
robot.RobotCapabilities is not null
&& robot.RobotCapabilities.Contains(RobotCapabilitiesEnum.auto_localize)
)
{
return true;
}

if (robot.CurrentInspectionArea is null)
{
const string ErrorMessage =
Expand Down
1 change: 0 additions & 1 deletion frontend/src/models/Robot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ enum RobotCapabilitiesEnum {
take_thermal_video = 'take_thermal_video',
take_gas_measurement = 'take_gas_measurement',
record_audio = 'record_audio',
auto_localize = 'auto_localize',
auto_return_to_home = 'auto_return_to_home',
return_to_home = 'return_to_home',
}

0 comments on commit 9251ef6

Please sign in to comment.