diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2013-10-28 11:38:36 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2013-10-28 13:48:13 +0100 |
commit | f5e8be8bb1681f0e2494337bc769b33332ef3fff (patch) | |
tree | 87c8d679befb417b7691233c5d46d15b951ff61d /include | |
parent | 8a201be240b6d408d15166be7ffc576b9e123634 (diff) |
Remove unused SimpleTokenizer_Impl::nLine/nCol
...which are never read; remove thereby unused parameters from functions.
Change-Id: I644d2dc1b2d13ae2f932d04243521eef97e67e3e
Diffstat (limited to 'include')
-rw-r--r-- | include/comphelper/syntaxhighlight.hxx | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/include/comphelper/syntaxhighlight.hxx b/include/comphelper/syntaxhighlight.hxx index dc1631ac6d63..cbeb95ee9c14 100644 --- a/include/comphelper/syntaxhighlight.hxx +++ b/include/comphelper/syntaxhighlight.hxx @@ -88,12 +88,8 @@ class SimpleTokenizer_Impl const sal_Unicode* mpStringBegin; const sal_Unicode* mpActualPos; - // Lines and columns - sal_uInt32 nLine; - sal_uInt32 nCol; - sal_Unicode peekChar( void ) { return *mpActualPos; } - sal_Unicode getChar( void ) { nCol++; return *mpActualPos++; } + sal_Unicode getChar( void ) { return *mpActualPos++; } // Auxiliary function: testing of the character flags sal_Bool testCharFlags( sal_Unicode c, sal_uInt16 nTestFlags ); @@ -109,8 +105,8 @@ public: SimpleTokenizer_Impl( HighlighterLanguage aLang = HIGHLIGHT_BASIC ); ~SimpleTokenizer_Impl( void ); - sal_uInt16 parseLine( sal_uInt32 nLine, const OUString* aSource ); - void getHighlightPortions( sal_uInt32 nParseLine, const OUString& rLine, + sal_uInt16 parseLine( const OUString* aSource ); + void getHighlightPortions( const OUString& rLine, /*out*/std::vector<HighlightPortion>& portions ); void setKeyWords( const char** ppKeyWords, sal_uInt16 nCount ); }; @@ -136,13 +132,11 @@ public: // (Re-)initialize Highlighter. The line-table will be completely erased, // meaning that on completion an empty Source is assumed. - // notifyChange() can only be given line 0 void initialize( HighlighterLanguage eLanguage_ ); - void notifyChange( sal_uInt32 nLine, sal_Int32 nLineCountDifference, - const OUString* pChangedLines, sal_uInt32 nArrayLength); + void notifyChange(const OUString* pChangedLines, sal_uInt32 nArrayLength); - void getHighlightPortions( sal_uInt32 nLine, const OUString& rLine, + void getHighlightPortions( const OUString& rLine, std::vector<HighlightPortion>& pPortions ); HighlighterLanguage GetLanguage() { return eLanguage;} |