From 6bd194529baaa0e66bbf088685459b11950a25d3 Mon Sep 17 00:00:00 2001 From: Karchnu Date: Wed, 20 May 2020 09:20:07 +0200 Subject: [PATCH] Remove dead code. --- src/server/storage.cr | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/src/server/storage.cr b/src/server/storage.cr index cb49cc3..602e5a0 100644 --- a/src/server/storage.cr +++ b/src/server/storage.cr @@ -182,21 +182,3 @@ class FileStorage::Storage end end end - -### # TODO: -### # why getting the file_info here? We could check for the transfer_info right away -### # it has more info, and we'll get it later eventually -### -### file_info = nil -### begin -### file_info = user.uploads.select do |v| -### v.file.digest == message.filedigest -### end.first.file -### -### pp! file_info -### rescue e : IndexError -### puts "No recorded upload request for file #{message.filedigest}" -### -### rescue e -### puts "Unexpected error: #{e}" -### end