From df96ba2af7251064e5df8da2a6b3a2c4d0c15f1f Mon Sep 17 00:00:00 2001 From: Eldad Fux Date: Wed, 30 Dec 2020 13:07:14 +0200 Subject: [PATCH] Deleted non-relevant comments --- app/workers/functions.php | 9 --------- 1 file changed, 9 deletions(-) diff --git a/app/workers/functions.php b/app/workers/functions.php index 48c435c922..4bacc120b4 100644 --- a/app/workers/functions.php +++ b/app/workers/functions.php @@ -489,15 +489,6 @@ class FunctionsV1 if(\count($list) > $max) { Console::info('Starting containers cleanup'); - // $sorted = []; - - // foreach($list as $env) { - // $sorted[] = [ - // 'name' => $env['name'], - // 'created' => (int)($env['appwrite-created'] ?? 0) - // ]; - // } - \usort($list, function ($item1, $item2) { return (int)($item1['appwrite-created'] ?? 0) <=> (int)($item2['appwrite-created'] ?? 0); });