CEC-5421: remove delete functionality (#482)

This commit is contained in:
Tristan Timblin
2023-11-10 09:20:26 -08:00
committed by GitHub
parent 88212d6362
commit 4e29f86876
13 changed files with 3 additions and 247 deletions

View File

@@ -243,20 +243,6 @@ export const VehicleProvider = ({ children }) => {
}
}
const deleteVehicle = async (vin, token) => {
try {
setBusy(true);
validateVIN(vin);
const result = await api.deleteVehicle(vin, token);
if (result.error)
throw new Error(`Delete vehicle error. ${result.message}`);
return result;
} finally {
setBusy(false);
}
};
const getCANSignals = async (vin, token) => {
try {
setBusy(true);
@@ -313,7 +299,6 @@ export const VehicleProvider = ({ children }) => {
fleets,
totalFleets,
addVehicle,
deleteVehicle,
getConnections,
getCANSignals,
getECUs,