diff options
author | Caolán McNamara <caolanm@redhat.com> | 2012-01-25 07:58:34 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2012-01-25 15:37:20 +0000 |
commit | 905b84557d8ccbdba07f0a82a89f382db08fc0d9 (patch) | |
tree | faa75a00d10758bc864f0bf20cd5093969f50db1 /autodoc/source | |
parent | make padmin ByteString free (diff) | |
download | core-905b84557d8ccbdba07f0a82a89f382db08fc0d9.tar.gz core-905b84557d8ccbdba07f0a82a89f382db08fc0d9.zip |
refresh unused code list
Diffstat (limited to 'autodoc/source')
-rw-r--r-- | autodoc/source/inc/tools/tkpchars.hxx | 26 | ||||
-rw-r--r-- | autodoc/source/parser/inc/tokens/stmstarr.hxx | 87 | ||||
-rw-r--r-- | autodoc/source/parser/tokens/makefile.mk | 1 | ||||
-rw-r--r-- | autodoc/source/parser/tokens/stmstarr.cxx | 101 | ||||
-rw-r--r-- | autodoc/source/tools/tkpchars.cxx | 41 |
5 files changed, 0 insertions, 256 deletions
diff --git a/autodoc/source/inc/tools/tkpchars.hxx b/autodoc/source/inc/tools/tkpchars.hxx index c5b952fb0f2f..e60769e063c4 100644 --- a/autodoc/source/inc/tools/tkpchars.hxx +++ b/autodoc/source/inc/tools/tkpchars.hxx @@ -96,32 +96,8 @@ class CharacterSource bool IsFinished() const; private: - struct S_SourceState - { - DYN char * dpSource; - intt nSourceSize; - - intt nCurPos; - intt nLastCut; - intt nLastTokenStart; - char cCharAtLastCut; - - S_SourceState( - DYN char * dpSource, - intt nSourceSize, - intt nCurPos, - intt nLastCut, - intt nLastTokenStart, - char cCharAtLastCut ); - }; - void BeginSource(); intt CurPos() const; - char MoveOn_OverStack(); - - // DATA - std::stack< S_SourceState > - aSourcesStack; DYN char * dpSource; intt nSourceSize; @@ -142,8 +118,6 @@ if (DEBUG_ShowText()) } if ( nCurPos < nSourceSize-1 ) return dpSource[++nCurPos]; - else if ( aSourcesStack.size() > 0 ) - return MoveOn_OverStack(); else return dpSource[nCurPos = nSourceSize]; } diff --git a/autodoc/source/parser/inc/tokens/stmstarr.hxx b/autodoc/source/parser/inc/tokens/stmstarr.hxx deleted file mode 100644 index 640177faf363..000000000000 --- a/autodoc/source/parser/inc/tokens/stmstarr.hxx +++ /dev/null @@ -1,87 +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 ADC_STMSTARR_HXX -#define ADC_STMSTARR_HXX - -// USED SERVICES - // BASE CLASSES -#include <tokens/stmstate.hxx> - // COMPONENTS - // PARAMETERS -#include <tokens/token.hxx> - - -class StmArrayStatus : public StmStatus -{ - public: - typedef TextToken::F_CRTOK F_CRTOK; - - // LIFECYCLE - StmArrayStatus( - intt i_nStatusSize, - const INT16 * in_aArrayModel, - F_CRTOK i_fTokenCreateFunction, - bool in_bIsDefault ); - ~StmArrayStatus(); - - // INQUIRY - StmStatus::Branch NextBy( - intt in_nFollowersIndex) const; - F_CRTOK TokenCreateFunction() const - { return fTokenCreateFunction; } - virtual bool IsADefault() const; - - // ACCESS - virtual StmArrayStatus * - AsArray(); - bool SetBranch( - intt in_nBranchIx, - StmStatus::Branch in_nBranch ); - void SetTokenCreateFunction( - F_CRTOK i_fTokenCreateFunction ); - private: - StmStatus::Branch * dpBranches; - intt nNrOfBranches; - F_CRTOK fTokenCreateFunction; - bool bIsADefault; -}; - - -// IMPLEMENTATION - -inline void -StmArrayStatus::SetTokenCreateFunction( F_CRTOK i_fTokenCreateFunction ) - { fTokenCreateFunction = i_fTokenCreateFunction; } - - - -#endif - - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/autodoc/source/parser/tokens/makefile.mk b/autodoc/source/parser/tokens/makefile.mk index 32bfac814998..76a2b371a9c6 100644 --- a/autodoc/source/parser/tokens/makefile.mk +++ b/autodoc/source/parser/tokens/makefile.mk @@ -45,7 +45,6 @@ PRJINC=$(PRJ)$/source # --- Files -------------------------------------------------------- OBJFILES= \ - $(OBJ)$/stmstarr.obj \ $(OBJ)$/stmstate.obj \ $(OBJ)$/tkp.obj \ $(OBJ)$/tkpcontx.obj \ diff --git a/autodoc/source/parser/tokens/stmstarr.cxx b/autodoc/source/parser/tokens/stmstarr.cxx deleted file mode 100644 index 8070fae3a450..000000000000 --- a/autodoc/source/parser/tokens/stmstarr.cxx +++ /dev/null @@ -1,101 +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. - * - ************************************************************************/ - -#include <precomp.h> -#include <tokens/stmstarr.hxx> - - -// NOT FULLY DECLARED SERVICES -#include <x_parse.hxx> - - - -StmArrayStatus::StmArrayStatus( intt i_nStatusSize, - const INT16 * in_aArrayModel, - F_CRTOK i_fTokenCreateFunction, - bool in_bIsDefault ) - : dpBranches(new StmStatus::Branch[i_nStatusSize]), - nNrOfBranches(i_nStatusSize), - fTokenCreateFunction(i_fTokenCreateFunction), - bIsADefault(in_bIsDefault) -{ - if (in_aArrayModel != 0) - { - intt count = 0; - for (const INT16 * get = in_aArrayModel; count < nNrOfBranches; count++, get++) - dpBranches[count] = *get; - } - else // - { - memset(dpBranches, 0, nNrOfBranches); - } // endif -} - -StmArrayStatus::~StmArrayStatus() -{ - delete [] dpBranches; -} - -bool -StmArrayStatus::SetBranch( intt in_nBranchIx, - StmStatus::Branch in_nBranch ) -{ - if ( csv::in_range(intt(0), in_nBranchIx, intt(nNrOfBranches) ) ) - { - dpBranches[in_nBranchIx] = in_nBranch; - return true; - } - return false; -} - - -StmStatus::Branch -StmArrayStatus::NextBy(intt in_nIndex) const -{ - if (in_nIndex < 0) - throw X_Parser(X_Parser::x_InvalidChar, "", String::Null_(), 0); - - return in_nIndex < nNrOfBranches - ? dpBranches[in_nIndex] - : dpBranches[nNrOfBranches - 1]; -} - - -bool -StmArrayStatus::IsADefault() const -{ - return bIsADefault; -} - -StmArrayStatus * -StmArrayStatus::AsArray() -{ - return this; -} - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/autodoc/source/tools/tkpchars.cxx b/autodoc/source/tools/tkpchars.cxx index 92d91d5e6db1..b4e705795311 100644 --- a/autodoc/source/tools/tkpchars.cxx +++ b/autodoc/source/tools/tkpchars.cxx @@ -95,45 +95,4 @@ CharacterSource::BeginSource() dpSource[nLastCut] = NULCH; } -// KORR_FUTURE: So far, this works only when tokens do not cross inserted text boundaries. -char -CharacterSource::MoveOn_OverStack() -{ - while ( aSourcesStack.size() > 0 AND nCurPos >= nSourceSize-1 ) - { - S_SourceState & aState = aSourcesStack.top(); - delete [] dpSource; - - dpSource = aState.dpSource; - nSourceSize = aState.nSourceSize; - nCurPos = aState.nCurPos; - nLastCut = aState.nLastCut; - nLastTokenStart = aState.nLastTokenStart; - cCharAtLastCut = aState.cCharAtLastCut; - - aSourcesStack.pop(); - } - - if ( nLastCut < nCurPos ) - CutToken(); - - return CurChar(); -} - -CharacterSource:: -S_SourceState::S_SourceState( DYN char * dpSource_, - intt nSourceSize_, - intt nCurPos_, - intt nLastCut_, - intt nLastTokenStart_, - char cCharAtLastCut_ ) - : dpSource(dpSource_), - nSourceSize(nSourceSize_), - nCurPos(nCurPos_), - nLastCut(nLastCut_), - nLastTokenStart(nLastTokenStart_), - cCharAtLastCut(cCharAtLastCut_) -{ -} - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |