summaryrefslogtreecommitdiff
path: root/classes
diff options
context:
space:
mode:
authorRobin Millette <millette@controlyourself.ca>2009-05-18 19:23:18 -0400
committerRobin Millette <millette@controlyourself.ca>2009-05-18 19:23:18 -0400
commit9261e48ef039869fb3709d374b7e4346d8773a49 (patch)
treec12f828e9ffb321d8a7a0282b3892adf48c94788 /classes
parentf5606b6aa3868d777c6c697cf1bbc5348cb2ccc3 (diff)
Removed dead code.
Diffstat (limited to 'classes')
-rw-r--r--classes/File_redirection.php2
1 files changed, 0 insertions, 2 deletions
diff --git a/classes/File_redirection.php b/classes/File_redirection.php
index a71d1c083..0eae68178 100644
--- a/classes/File_redirection.php
+++ b/classes/File_redirection.php
@@ -201,7 +201,6 @@ class File_redirection extends Memcached_DataObject
if ($short_url) {
$short_url = (string)$short_url;
-if(1) {
// store it
$file = File::staticGet('url', $long_url);
if (empty($file)) {
@@ -221,7 +220,6 @@ if(1) {
$file_redir->file_id = $file_id;
$file_redir->insert();
}
-}
return $short_url;
}
return $long_url;