From e85c00f0c7f5487d274c8dd5795a99b58c22e5d4 Mon Sep 17 00:00:00 2001 From: Sean Harvey Date: Wed, 14 Jan 2009 21:37:31 +0000 Subject: [PATCH] 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 --- core/model/fieldtypes/Varchar.php | 4 ---- 1 file changed, 4 deletions(-) diff --git a/core/model/fieldtypes/Varchar.php b/core/model/fieldtypes/Varchar.php index 3026d2bd1..7594fe66e 100644 --- a/core/model/fieldtypes/Varchar.php +++ b/core/model/fieldtypes/Varchar.php @@ -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;