From 28817af471a3cac0f4cc2bdc70fc5a2466f31d5d Mon Sep 17 00:00:00 2001 From: Loic d'Anterroches Date: Wed, 3 Sep 2008 09:13:50 +0200 Subject: [PATCH] Removed dead code. --- src/IDF/Views/Source.php | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/src/IDF/Views/Source.php b/src/IDF/Views/Source.php index 964e09c..f69c840 100644 --- a/src/IDF/Views/Source.php +++ b/src/IDF/Views/Source.php @@ -124,14 +124,8 @@ class IDF_Views_Source } if ($request_file_info->type != 'tree') { $info = self::getMimeType($request_file_info->file); - if ($request->conf->getVal('scm', 'git') == 'git') { - $rep = new Pluf_HTTP_Response($scm->getBlob($request_file_info->hash), - $info[0]); - } - else { - $rep = new Pluf_HTTP_Response($scm->getBlob($request_file_info->fullpath, $commit), - $info[0]); - } + $rep = new Pluf_HTTP_Response($scm->getBlob($request_file_info->hash), + $info[0]); $rep->headers['Content-Disposition'] = 'attachment; filename="'.$info[1].'"'; return $rep; }