Skip to content

Commit

Permalink
Remove requests to old api
Browse files Browse the repository at this point in the history
  • Loading branch information
tschumpr committed Jan 8, 2024
1 parent 241289e commit aed4995
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 33 deletions.
13 changes: 0 additions & 13 deletions src/client/src/api-lib/actions/stratigraphy.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,16 +59,3 @@ export function gapLayer(id, process = 0, value = null) {
value: value,
});
}

export function patchLayer(id, field, value) {
if (field === "layer_lithology_top_bedrock") {
// Fixes discrepancy between field name in client and API.
field = "lithology_top_bedrock";
}
return fetch("/borehole/stratigraphy/layer/edit", {
action: "PATCH",
id: id,
field: field,
value: value,
});
}
2 changes: 0 additions & 2 deletions src/client/src/api-lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,6 @@ import {
deleteLayer,
gapLayer,
getLayers,
patchLayer,
} from "./actions/stratigraphy";

import {
Expand Down Expand Up @@ -165,7 +164,6 @@ export {
deleteLayer,
gapLayer,
getLayers,
patchLayer,
getProfile,
getProfiles,
getProfileLayers,
Expand Down

This file was deleted.

0 comments on commit aed4995

Please sign in to comment.