remove logic that has moved to the server

This commit is contained in:
Mads Rasmussen
2024-01-08 15:42:31 +01:00
parent a5ba696a7e
commit 0826bbb0c3

View File

@@ -1,5 +1,3 @@
import { getParentPathFromServerPath } from './parent-path-from-server-path.function.js';
export class UmbServerPathUniqueSerializer {
#magicDot = '%dot%';
@@ -14,22 +12,6 @@ export class UmbServerPathUniqueSerializer {
return encodeURIComponent(urlSafeServerPath);
}
/**
* Converts a server path to the a unique parent path URL friendly string that can be used in the client
* @param {string} serverPath
* @return {*} {(string | null)}
* @memberof UmbServerPathUniqueSerializer
*/
toParentUnique(serverPath: string): string | null {
const parentPath = getParentPathFromServerPath(serverPath);
if (parentPath) {
return this.toUnique(parentPath);
} else {
return null;
}
}
/**
* Converts a unique URL friendly string to a server path
* @param {string} serverPathUnique