Skip to content

Commit

Permalink
Comment out unused canonicalizeNvrMesh
Browse files Browse the repository at this point in the history
  • Loading branch information
jennydaman committed Feb 7, 2024
1 parent f008b4e commit e07626f
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions src/NiivueMutator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -213,18 +213,18 @@ class NiivueMutator {
}
}

/**
* Converts to `LoadFromUrlParams` (which is not exported by niivue).
*/
function canonicalizeNvrMesh(mesh: NVRMesh): HasUrlObject {
if (mesh.layers) {
return {
...mesh,
layers: Object.values(mesh.layers),
};
}
return mesh;
}
// /**
// * Converts to `LoadFromUrlParams` (which is not exported by niivue).
// */
// function canonicalizeNvrMesh(mesh: NVRMesh): HasUrlObject {
// if (mesh.layers) {
// return {
// ...mesh,
// layers: Object.values(mesh.layers),
// };
// }
// return mesh;
// }

/**
* Wrapper around `Object.entries` with safe type coercion of the keys to `keyof T`.
Expand Down

0 comments on commit e07626f

Please sign in to comment.