Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
905b8455
Kaydet (Commit)
905b8455
authored
Ock 25, 2012
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
refresh unused code list
üst
d6bf32ba
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
6 additions
and
282 deletions
+6
-282
tkpchars.hxx
autodoc/source/inc/tools/tkpchars.hxx
+0
-26
stmstarr.hxx
autodoc/source/parser/inc/tokens/stmstarr.hxx
+0
-87
makefile.mk
autodoc/source/parser/tokens/makefile.mk
+0
-1
stmstarr.cxx
autodoc/source/parser/tokens/stmstarr.cxx
+0
-101
tkpchars.cxx
autodoc/source/tools/tkpchars.cxx
+0
-41
export.hxx
l10ntools/inc/export.hxx
+1
-1
merge.cxx
l10ntools/source/merge.cxx
+3
-1
stream.hxx
tools/inc/tools/stream.hxx
+0
-2
stream.cxx
tools/source/stream/stream.cxx
+0
-12
unusedcode.easy
unusedcode.easy
+2
-3
heap.cxx
xml2cmp/source/support/heap.cxx
+0
-6
heap.hxx
xml2cmp/source/support/heap.hxx
+0
-1
No files found.
autodoc/source/inc/tools/tkpchars.hxx
Dosyayı görüntüle @
905b8455
...
...
@@ -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
];
}
...
...
autodoc/source/parser/inc/tokens/stmstarr.hxx
deleted
100644 → 0
Dosyayı görüntüle @
d6bf32ba
/* -*- 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: */
autodoc/source/parser/tokens/makefile.mk
Dosyayı görüntüle @
905b8455
...
...
@@ -45,7 +45,6 @@ PRJINC=$(PRJ)$/source
# --- Files --------------------------------------------------------
OBJFILES
=
\
$(OBJ)$/
stmstarr.obj
\
$(OBJ)$/
stmstate.obj
\
$(OBJ)$/
tkp.obj
\
$(OBJ)$/
tkpcontx.obj
\
...
...
autodoc/source/parser/tokens/stmstarr.cxx
deleted
100644 → 0
Dosyayı görüntüle @
d6bf32ba
/* -*- 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: */
autodoc/source/tools/tkpchars.cxx
Dosyayı görüntüle @
905b8455
...
...
@@ -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: */
l10ntools/inc/export.hxx
Dosyayı görüntüle @
905b8455
...
...
@@ -492,7 +492,7 @@ class MergeDataFile
sal_Bool
bErrorLog
;
ByteString
sErrorLog
;
SvFileStream
aErrLog
;
MergeDataHashMap
aMap
;
MergeDataHashMap
aMap
;
std
::
set
<
ByteString
>
aLanguageSet
;
MergeData
*
GetMergeData
(
ResData
*
pResData
,
bool
bCaseSensitve
=
false
);
...
...
l10ntools/source/merge.cxx
Dosyayı görüntüle @
905b8455
...
...
@@ -238,6 +238,8 @@ MergeDataFile::MergeDataFile(
MergeDataFile
::~
MergeDataFile
()
{
for
(
MergeDataHashMap
::
iterator
aI
=
aMap
.
begin
(),
aEnd
=
aMap
.
end
();
aI
!=
aEnd
;
++
aI
)
delete
aI
->
second
;
}
ByteString
MergeDataFile
::
Dump
(){
...
...
@@ -248,7 +250,7 @@ ByteString MergeDataFile::Dump(){
for
(
idbg
=
aMap
.
begin
()
;
idbg
!=
aMap
.
end
();
++
idbg
)
{
printf
(
"aMap[ %s ] = "
,
idbg
->
first
.
GetBuffer
());
((
MergeData
*
)
(
idbg
->
second
))
->
Dump
();
idbg
->
second
->
Dump
();
printf
(
"
\n
"
);
}
printf
(
"
\n
"
);
...
...
tools/inc/tools/stream.hxx
Dosyayı görüntüle @
905b8455
...
...
@@ -415,8 +415,6 @@ public:
/// Read a line of Unicode if eSrcCharSet==RTL_TEXTENCODING_UNICODE,
/// otherwise read a line of Bytecode and convert from eSrcCharSet
sal_Bool
ReadUniOrByteStringLine
(
String
&
rStr
,
rtl_TextEncoding
eSrcCharSet
);
/// Write a sequence of Unicode characters
sal_Bool
WriteUnicodeText
(
const
String
&
rStr
);
/// Write a sequence of Unicode characters if eDestCharSet==RTL_TEXTENCODING_UNICODE,
/// otherwise write a sequence of Bytecodes converted to eDestCharSet
sal_Bool
WriteUnicodeOrByteText
(
const
String
&
rStr
,
rtl_TextEncoding
eDestCharSet
);
...
...
tools/source/stream/stream.cxx
Dosyayı görüntüle @
905b8455
...
...
@@ -885,18 +885,6 @@ sal_Size write_uInt16s_FromOUString(SvStream& rStrm, const rtl::OUString& rStr,
return
nWritten
;
}
/*************************************************************************
|*
|* Stream::WriteUnicodeText()
|*
*************************************************************************/
sal_Bool
SvStream
::
WriteUnicodeText
(
const
String
&
rStr
)
{
write_uInt16s_FromOUString
(
*
this
,
rStr
,
rStr
.
Len
());
return
nError
==
SVSTREAM_OK
;
}
sal_Bool
SvStream
::
WriteUnicodeOrByteText
(
const
String
&
rStr
,
rtl_TextEncoding
eDestCharSet
)
{
if
(
eDestCharSet
==
RTL_TEXTENCODING_UNICODE
)
...
...
unusedcode.easy
Dosyayı görüntüle @
905b8455
...
...
@@ -82,7 +82,6 @@ MailDispatcher::removeListener(rtl::Reference<IMailDispatcherListener>)
Matrix3d::Inverse() const
Matrix3d::Matrix3d()
MenuBar::MenuBar(ResId const&)
MergeData::~MergeData()
MergeDataFile::Dump()
MessBox::MessBox(unsigned short)
MetaAction::IsEqual(MetaAction const&) const
...
...
@@ -382,6 +381,7 @@ SvPersistStream::RemoveObj(SvPersistBase*)
SvPersistStream::SvPersistStream(SvClassManager&, SvStream*, SvPersistStream const&)
SvPtrarr::Replace(void* const*, unsigned short, unsigned short)
SvStream::ReadLine(ByteString&)
SvStringsISortDtor::Insert(String* const*, unsigned short)
SvTabListBox::GetTabJustify(unsigned short) const
SvUnoAttributeContainer::getImplementation(com::sun::star::uno::Reference<com::sun::star::uno::XInterface>)
SvXMLAutoStylePoolNamesP_Impl::GetPos(rtl::OUString const*) const
...
...
@@ -677,8 +677,6 @@ TransferableDataHelper::GetInterface(com::sun::star::datatransfer::DataFlavor co
TypeDescriptor_Init_Impl::~TypeDescriptor_Init_Impl()
UCBStorage::IsStorageFile(String const&)
UCBStream::UCBStream(com::sun::star::uno::Reference<com::sun::star::io::XOutputStream>&)
UnoApiTest::UnoApiTest()
UnoApiTest::createFileURL(rtl::OUString const&, rtl::OUString&)
UnoComboBoxControl::getActionListeners()
UnoComboBoxControl::getItemListeners()
UnoControlBase::UnoControlBase()
...
...
@@ -1568,6 +1566,7 @@ pdfi::DrawXmlEmitter::GetBreakIterator()
pdfi::PDFIProcessor::sortDocument(bool)
pdfi::PDFIRawAdaptor::odfConvert(rtl::OUString const&, com::sun::star::uno::Reference<com::sun::star::io::XOutputStream> const&, com::sun::star::uno::Reference<com::sun::star::task::XStatusIndicator> const&)
pdfparse::PDFReader::read(char const*, unsigned int)
pq_sdbc_driver::rollbackNoThrow(com::sun::star::uno::Reference<com::sun::star::sdbc::XConnection> const&)
psp::GetCommandLineTokenCount(rtl::OString const&)
psp::PrinterGfx::DrawBitmap(Rectangle const&, Rectangle const&, psp::PrinterBmp const&, psp::PrinterBmp const&)
psp::PrinterGfx::DrawMask(Rectangle const&, Rectangle const&, psp::PrinterBmp const&, psp::PrinterColor&)
...
...
xml2cmp/source/support/heap.cxx
Dosyayı görüntüle @
905b8455
...
...
@@ -181,12 +181,6 @@ HeapItem::operator<( const HeapItem & i_rOther ) const
return
ret
<
0
;
}
const
Simstr
&
HeapItem
::
Value
()
const
{
return
sValue
;
}
const
Simstr
&
HeapItem
::
Key
()
const
{
...
...
xml2cmp/source/support/heap.hxx
Dosyayı görüntüle @
905b8455
...
...
@@ -70,7 +70,6 @@ class HeapItem
bool
operator
<=
(
const
HeapItem
&
i_rOther
)
const
{
return
!
(
i_rOther
<
*
this
);
}
const
Simstr
&
Value
()
const
;
const
Simstr
&
Key
()
const
;
HeapItem
*
Next
()
const
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment