MINOR Removed redundant code from Varchar

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.3@70153 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Sean Harvey 2009-01-14 21:37:31 +00:00 committed by Sam Minnee
parent d3a5bcbb7f
commit e85c00f0c7

View File

@ -48,10 +48,6 @@ class Varchar extends DBField {
return str_replace("\n", '\par ', $this->value);
}
/*function forTemplate() {
return $this->raw2HTML();
}*/
function LimitCharacters($limit = 20, $add = "...") {
$value = trim($this->value);
return (strlen($value) > $limit) ? substr($value, 0, $limit) . $add : $value;