From ee072565ec047156ab9916b3ecff650bdc99e03c Mon Sep 17 00:00:00 2001 From: Sean Harvey Date: Fri, 22 May 2009 04:54:51 +0000 Subject: [PATCH] API CHANGE Removed @deprecated method Text::LimitWordCountPlainText(): Please use Text::LimitWordCount() instead git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@77635 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- core/model/fieldtypes/Text.php | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/core/model/fieldtypes/Text.php b/core/model/fieldtypes/Text.php index e5ba404f5..bfc3baec0 100644 --- a/core/model/fieldtypes/Text.php +++ b/core/model/fieldtypes/Text.php @@ -67,16 +67,6 @@ class Text extends DBField { return (strlen($value) > $limit) ? substr($value, 0, $limit) . $add : $value; } - /** - * @deprecated. Please use {@link LimitWordCount()} - */ - function LimitWordCountPlainText($numWords = 26) { - $ret = $this->LimitWordCount( $numWords ); - // Use LimitWordCountXML() instead! - // return Convert::raw2xml($ret); - return $ret; - } - /** * Limit the number of words of the current field's * content. This is XML safe, so characters like &