Removed dead code.

This commit is contained in:
Robin Millette 2009-05-18 19:23:18 -04:00
parent f5606b6aa3
commit 9261e48ef0
3 changed files with 2 additions and 9 deletions

View File

@ -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;

View File

@ -187,7 +187,7 @@ class NoticeListItem extends Widget
function showNotice()
{
if (0)
if(0)
$this->out->elementStart('entry-title');
else
@ -236,7 +236,7 @@ else
$clip .= '.png';
$top = '20px';
}
if (0)
if(0)
$this->out->elementStart('div', 'entry-attachments');
else
$this->out->elementStart('p', array('class' => 'entry-attachments', 'style' => "float: right; width: $width_att; background: url($clip) no-repeat; text-align: right; height: $height;"));

View File

@ -496,11 +496,6 @@ function common_linkify($url) {
}
$attrs = array('href' => $longurl, 'rel' => 'external');
if(0){
if ($longurl !== $url) {
$attrs['title'] = $longurl;
}
}
return XMLStringer::estring('a', $attrs, $display);
}