File tree Expand file tree Collapse file tree 1 file changed +0
-15
lines changed Expand file tree Collapse file tree 1 file changed +0
-15
lines changed Original file line number Diff line number Diff line change @@ -448,21 +448,6 @@ class LDP {
448
448
return this . resourceMapper . resolveRelativeFilePath ( host , relativePath )
449
449
}
450
450
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
-
466
451
getTrustedOrigins ( req ) {
467
452
let trustedOrigins = [ this . resourceMapper . resolveUrl ( req . hostname ) ] . concat ( this . trustedOrigins )
468
453
if ( this . multiuser ) {
You can’t perform that action at this time.
0 commit comments