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 | |
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')
-rw-r--r-- | idl/inc/char.hxx | 43 | ||||
-rw-r--r-- | idl/inc/lex.hxx | 5 |
2 files changed, 0 insertions, 48 deletions
diff --git a/idl/inc/char.hxx b/idl/inc/char.hxx deleted file mode 100644 index 0c0528d08a98..000000000000 --- a/idl/inc/char.hxx +++ /dev/null @@ -1,43 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2000, 2010 Oracle and/or its affiliates. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * <http://www.openoffice.org/license.html> - * for a copy of the LGPLv3 License. - * - ************************************************************************/ - -#ifndef _CHAR_HXX -#define _CHAR_HXX - -#include <tools/string.hxx> - -class SvChar -{ -public: - static char * GetTable( CharSet nSource, CharSet nDest ); -}; - - -#endif // _CHAR_HXX - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ 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; } |