Skip to content

Commit e62ca8c

Browse files
committed
refactor: Remove some dead code from the trashbin Helper
Signed-off-by: Carl Schwan <carlschwan@kde.org>
1 parent 2da796c commit e62ca8c

1 file changed

Lines changed: 0 additions & 17 deletions

File tree

apps/files_trashbin/lib/Helper.php

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -118,21 +118,4 @@ private static function buildFileInfo(ICacheEntry $entry, string $dir, ?string &
118118
$i['deletedBy'] = $extraData[$originalName][$timestamp]['deletedBy'] ?? null;
119119
return new FileInfo($absoluteDir . '/' . $i['name'], $storage, $internalPath . '/' . $i['name'], $i, $mount);
120120
}
121-
122-
/**
123-
* Format file infos for JSON
124-
*
125-
* @param \OCP\Files\FileInfo[] $fileInfos file infos
126-
*/
127-
public static function formatFileInfos($fileInfos) {
128-
$files = [];
129-
foreach ($fileInfos as $i) {
130-
$entry = \OCA\Files\Helper::formatFileInfo($i);
131-
$entry['id'] = $i->getId();
132-
$entry['etag'] = $entry['mtime']; // add fake etag, it is only needed to identify the preview image
133-
$entry['permissions'] = Constants::PERMISSION_READ;
134-
$files[] = $entry;
135-
}
136-
return $files;
137-
}
138121
}

0 commit comments

Comments
 (0)