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/parser | |
parent | d6bf32bab10e1bb115aea0c6e5d6ac1753760fe7 (diff) |
refresh unused code list
Diffstat (limited to 'autodoc/source/parser')
-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 |
3 files changed, 0 insertions, 189 deletions
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: */ |