Skip to content

Commit 65e1746

Browse files
committed
Remove old code
1 parent 694bcd0 commit 65e1746

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

lib/ldp.js

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -448,21 +448,6 @@ class LDP {
448448
return this.resourceMapper.resolveRelativeFilePath(host, relativePath)
449449
}
450450

451-
oldGetAvailablePath (host, containerURI, { slug = uuid.v1(), extension }) {
452-
const path = slug + extension
453-
function ensureNotExists (self, newPath) {
454-
// Verify whether the new path already exists
455-
return self.exists(host, newPath).then(
456-
// If it does, generate another one
457-
() => ensureNotExists(self, URI.joinPaths(containerURI,
458-
`${uuid.v1().split('-')[0]}-${path}`).toString()),
459-
// If not, we found an appropriate path
460-
() => newPath
461-
)
462-
}
463-
return ensureNotExists(this, URI.joinPaths(containerURI, path).toString())
464-
}
465-
466451
getTrustedOrigins (req) {
467452
let trustedOrigins = [this.resourceMapper.resolveUrl(req.hostname)].concat(this.trustedOrigins)
468453
if (this.multiuser) {

0 commit comments

Comments
 (0)