From 0d1b23fc9b54b461f16c493043af7a4309f26b23 Mon Sep 17 00:00:00 2001 From: hyung-hwan Date: Wed, 1 Apr 2015 08:54:42 +0000 Subject: [PATCH] delete history_json from the code controller --- codepot/src/codepot/controllers/code.php | 43 ------------------------ 1 file changed, 43 deletions(-) diff --git a/codepot/src/codepot/controllers/code.php b/codepot/src/codepot/controllers/code.php index 2d746440..aa978552 100644 --- a/codepot/src/codepot/controllers/code.php +++ b/codepot/src/codepot/controllers/code.php @@ -677,49 +677,6 @@ class Code extends Controller return $path; } - function history_json ($projectid = '', $path = '', $rev = SVN_REVISION_HEAD) - { - $this->load->model ('ProjectModel', 'projects'); - - $login = $this->login->getUser (); - if (CODEPOT_SIGNIN_COMPULSORY && $login['id'] == '') - { - header($_SERVER['SERVER_PROTOCOL'].' 404 Not Found'); - return; - } - - $project = $this->projects->get ($projectid); - if ($project === FALSE || ($project->public !== 'Y' && $login['id'] == '')) - { - header($_SERVER['SERVER_PROTOCOL'].' 404 Not Found'); - return; - } - - $this->load->model ('SubversionModel', 'subversion'); - - $path = $this->converter->HexToAscii ($path); - if ($path == '.') $path = ''; /* treat a period specially */ - $path = $this->_normalize_path ($path); - - $file = $this->subversion->getHistory ($projectid, $path, SVN_REVISION_HEAD); - if ($file === FALSE) - { - $history = array(); - } - else - { - $history = $file['history']; - $count = count($history); - for ($i = 0; $i < $count; $i++) - { - unset ($history[$i]['msg']); - unset ($history[$i]['paths']); - } - } - - print codepot_json_encode ($history); - } - function graph ($type = '', $projectid = '', $path = '', $rev = SVN_REVISION_HEAD) { $this->load->model ('ProjectModel', 'projects');