diff options
Diffstat (limited to 'indra/llui')
| -rw-r--r-- | indra/llui/lltextutil.cpp | 16 | ||||
| -rw-r--r-- | indra/llui/lltextutil.h | 12 | 
2 files changed, 0 insertions, 28 deletions
| diff --git a/indra/llui/lltextutil.cpp b/indra/llui/lltextutil.cpp index 538508b856..78049319bc 100644 --- a/indra/llui/lltextutil.cpp +++ b/indra/llui/lltextutil.cpp @@ -76,22 +76,6 @@ void LLTextUtil::textboxSetGreyedVal(LLTextBox *txtbox, const LLStyle::Params& n      txtbox->appendText(text.substr(greyed_begin + greyed_len),  false, normal_style);  } -const std::string& LLTextUtil::formatPhoneNumber(const std::string& phone_str) -{ -	static const std::string PHONE_SEPARATOR = LLUI::getInstance()->mSettingGroups["config"]->getString("AvalinePhoneSeparator"); -	static const S32 PHONE_PART_LEN = 2; - -	static std::string formatted_phone_str; -	formatted_phone_str = phone_str; -	S32 separator_pos = (S32)(formatted_phone_str.size()) - PHONE_PART_LEN; -	for (; separator_pos >= PHONE_PART_LEN; separator_pos -= PHONE_PART_LEN) -	{ -		formatted_phone_str.insert(separator_pos, PHONE_SEPARATOR); -	} - -	return formatted_phone_str; -} -  bool LLTextUtil::processUrlMatch(LLUrlMatch* match,LLTextBase* text_base, bool is_content_trusted)  {  	if (match == 0 || text_base == 0) diff --git a/indra/llui/lltextutil.h b/indra/llui/lltextutil.h index a9c143e445..1adc3516f7 100644 --- a/indra/llui/lltextutil.h +++ b/indra/llui/lltextutil.h @@ -59,18 +59,6 @@ namespace LLTextUtil  	        const std::string& greyed);  	/** -	 * Formats passed phone number to be more human readable. -	 * -	 * It just divides the number on parts by two digits from right to left. The first left part -	 * can have 2 or 3 digits, i.e. +44-33-33-44-55-66 or 12-34-56-78-90. Separator is set in -	 * application settings (AvalinePhoneSeparator) -	 * -	 * @param[in] phone_str string with original phone number -	 * @return reference to string with formatted phone number -	 */ -	const std::string& formatPhoneNumber(const std::string& phone_str); - -	/**  	 * Adds icon before url if need.  	 *  	 * @param[in] match an object with results of matching | 
