*Remove unused functions

This commit is contained in:
Derrick Hammer 2022-08-05 20:06:08 -04:00
parent 927efddfed
commit 8510c96cad
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 0 additions and 30 deletions

View File

@ -81,36 +81,6 @@ async function initIpfs() {
client = await client; client = await client;
} }
function joinURLParts(...urls: string[]) {
urls = urls.filter((url) => url.length > 0);
urls = [""].concat(urls.map((url) => removeSlashFromBothEnds(url)));
return urls.join("/");
}
function removeSlashFromBothEnds(url: string): string {
url = removeLeadingSlash(url);
url = removeTrailingSlash(url);
return url;
}
function removeLeadingSlash(url: string): string {
if (url[0] === "/") {
url = url.substring(1);
}
return url;
}
export function removeTrailingSlash(url: string): string {
if (url.endsWith("/")) {
url = url.substring(0, url.length - 1);
}
return url;
}
initIpfs(); initIpfs();
function normalizePath( function normalizePath(