diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-08-08 22:50:17 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-08-09 09:32:39 +0100 |
commit | bca5c1a4d0aa762f37d9f3f6976d3d17865f33a6 (patch) | |
tree | eda40881636c673bd28a388488b9647d81629e38 /idl/inc/lex.hxx | |
parent | fa419956a170395d5df4f66c9564de6253d77d6d (diff) |
The idl encoding table stuff appears to be a no-op, converts x to x
1.a) There is only one call to SvTokenStream::SetCharSet
2.b) That call is from SvTokenStream::InitCtor and the argument is
gsl_getSystemTextEncoding()
2.a) SvTokenStream::SetCharSet is the sole caller of SvChar::GetTable
i.e.
pCharTab = SvChar::GetTable( nSet, gsl_getSystemTextEncoding() );
2.b) so this is in practive only ever...
pCharTab = SvChar::GetTable( gsl_getSystemTextEncoding(),
gsl_getSystemTextEncoding() );
3) SvChar::GetTable returns a table for converting from one encoding to
another.
4) so the whole thing is a no-op, i.e.
pCharTab can be dropped
SvChar::GetTable is then unused and can be dropped
SetCharSet and GetCharSet are then also unused
Diffstat (limited to 'idl/inc/lex.hxx')
-rw-r--r-- | idl/inc/lex.hxx | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/idl/inc/lex.hxx b/idl/inc/lex.hxx index 3aa22139a4dd..607f0ec67a8d 100644 --- a/idl/inc/lex.hxx +++ b/idl/inc/lex.hxx @@ -133,8 +133,6 @@ class SvTokenStream sal_uLong nLine, nColumn; int nBufPos; int c; // next character - CharSet nCharSet; - char * pCharTab; // pointer to conversion table sal_uInt16 nTabSize; // length of tabulator ByteString aStrTrue; ByteString aStrFalse; @@ -184,9 +182,6 @@ public: const String & GetFileName() const { return aFileName; } SvStream & GetStream() { return rInStream; } - void SetCharSet( CharSet nSet ); - CharSet GetCharSet() const { return nCharSet; } - void SetTabSize( sal_uInt16 nTabSizeP ) { nTabSize = nTabSizeP; } sal_uInt16 GetTabSize() const { return nTabSize; } |