Kaydet (Commit) 3b6ee586 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Remove unused BreakIterator_Unicode::wordRule

Change-Id: I8cde0dfd7b760d8075f53b9de8a8d3a81a57dc27
üst 1744fed4
...@@ -72,7 +72,7 @@ public: ...@@ -72,7 +72,7 @@ public:
throw( com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE; throw( com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
protected: protected:
const sal_Char *cBreakIterator, *wordRule, *lineRule; const sal_Char *cBreakIterator, *lineRule;
Boundary result; // for word break iterator Boundary result; // for word break iterator
struct BI_Data struct BI_Data
......
...@@ -34,7 +34,7 @@ namespace com { namespace sun { namespace star { namespace i18n { ...@@ -34,7 +34,7 @@ namespace com { namespace sun { namespace star { namespace i18n {
BreakIterator_th::BreakIterator_th() BreakIterator_th::BreakIterator_th()
{ {
cBreakIterator = "com.sun.star.i18n.BreakIterator_th"; cBreakIterator = "com.sun.star.i18n.BreakIterator_th";
wordRule=lineRule=NULL; lineRule=NULL;
} }
BreakIterator_th::~BreakIterator_th() BreakIterator_th::~BreakIterator_th()
......
...@@ -42,7 +42,6 @@ namespace com { namespace sun { namespace star { namespace i18n { ...@@ -42,7 +42,6 @@ namespace com { namespace sun { namespace star { namespace i18n {
BreakIterator_Unicode::BreakIterator_Unicode() BreakIterator_Unicode::BreakIterator_Unicode()
: cBreakIterator( "com.sun.star.i18n.BreakIterator_Unicode" ) // implementation name : cBreakIterator( "com.sun.star.i18n.BreakIterator_Unicode" ) // implementation name
, wordRule( "word" )
, lineRule( "line" ) , lineRule( "line" )
, icuBI( NULL ) , icuBI( NULL )
, aBreakType(0) , aBreakType(0)
...@@ -91,12 +90,12 @@ void SAL_CALL BreakIterator_Unicode::loadICUBreakIterator(const com::sun::star:: ...@@ -91,12 +90,12 @@ void SAL_CALL BreakIterator_Unicode::loadICUBreakIterator(const com::sun::star::
switch (nWordType) { switch (nWordType) {
case WordType::ANY_WORD: break; // odd but previous behavior case WordType::ANY_WORD: break; // odd but previous behavior
case WordType::ANYWORD_IGNOREWHITESPACES: case WordType::ANYWORD_IGNOREWHITESPACES:
breakType = 0; rule = wordRule = "edit_word"; break; breakType = 0; rule = "edit_word"; break;
case WordType::DICTIONARY_WORD: case WordType::DICTIONARY_WORD:
breakType = 1; rule = wordRule = "dict_word"; break; breakType = 1; rule = "dict_word"; break;
default: default:
case WordType::WORD_COUNT: case WordType::WORD_COUNT:
breakType = 2; rule = wordRule = "count_word"; break; breakType = 2; rule = "count_word"; break;
} }
break; break;
case LOAD_SENTENCE_BREAKITERATOR: icuBI=&sentence; breakType = 5; break; case LOAD_SENTENCE_BREAKITERATOR: icuBI=&sentence; breakType = 5; break;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment