summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcos Paulo de Souza <marcos.souza.org@gmail.com>2014-07-28 12:11:08 -0300
committerMichael Stahl <mstahl@redhat.com>2014-07-29 14:20:36 +0000
commit5021f298418f6efa7bb7b6540113b712599778fe (patch)
tree3ac99403bb3df46ba633ca28845705240472cb96
parentdea278910731ddd8856fa122d59d83e01bdff87f (diff)
Remove some unused code
Change-Id: Ib1fb5108a858c35a5bbe8ba865e15660639725e3 Reviewed-on: https://gerrit.libreoffice.org/10593 Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org> Reviewed-by: Michael Stahl <mstahl@redhat.com>
-rw-r--r--chart2/source/inc/InternalData.hxx1
-rw-r--r--chart2/source/tools/InternalData.cxx11
-rw-r--r--formula/source/core/api/token.cxx11
-rw-r--r--include/formula/tokenarray.hxx1
-rw-r--r--include/test/mtfxmldump.hxx1
-rw-r--r--include/unotools/datetime.hxx1
-rw-r--r--sc/inc/document.hxx1
-rw-r--r--sc/source/core/data/document.cxx13
-rw-r--r--sc/source/ui/inc/tabvwsh.hxx1
-rw-r--r--sc/source/ui/view/tabvwsh4.cxx8
-rw-r--r--test/source/mtfxmldump.cxx5
-rw-r--r--unotools/source/misc/datetime.cxx8
-rw-r--r--unusedcode.easy6
13 files changed, 0 insertions, 68 deletions
diff --git a/chart2/source/inc/InternalData.hxx b/chart2/source/inc/InternalData.hxx
index 28506b513c51..d35d7a58f055 100644
--- a/chart2/source/inc/InternalData.hxx
+++ b/chart2/source/inc/InternalData.hxx
@@ -34,7 +34,6 @@ public:
void createDefaultData();
bool isDefaultData();
- void clearDefaultData();
void setData( const ::com::sun::star::uno::Sequence<
::com::sun::star::uno::Sequence< double > > & rDataInRows );
diff --git a/chart2/source/tools/InternalData.cxx b/chart2/source/tools/InternalData.cxx
index 8f51469ec0c1..b0f871bb3ad1 100644
--- a/chart2/source/tools/InternalData.cxx
+++ b/chart2/source/tools/InternalData.cxx
@@ -132,17 +132,6 @@ bool InternalData::isDefaultData()
return false;
}
-void InternalData::clearDefaultData()
-{
- if( isDefaultData() )
- {
- m_nRowCount = m_nColumnCount = 1;
- m_aData.resize( 1 );
- m_aRowLabels.clear();
- m_aColumnLabels.clear();
- }
-}
-
void InternalData::setData( const Sequence< Sequence< double > >& rDataInRows )
{
m_nRowCount = rDataInRows.getLength();
diff --git a/formula/source/core/api/token.cxx b/formula/source/core/api/token.cxx
index 3e37c28acc09..227cd3da081b 100644
--- a/formula/source/core/api/token.cxx
+++ b/formula/source/core/api/token.cxx
@@ -464,17 +464,6 @@ FormulaToken* FormulaTokenArray::GetNextName()
return NULL;
}
-FormulaToken* FormulaTokenArray::GetNextOpCodeRPN( OpCode eOp )
-{
- while( nIndex < nRPN )
- {
- FormulaToken* t = pRPN[ nIndex++ ];
- if ( t->GetOpCode() == eOp )
- return t;
- }
- return NULL;
-}
-
FormulaToken* FormulaTokenArray::Next()
{
if( pCode && nIndex < nLen )
diff --git a/include/formula/tokenarray.hxx b/include/formula/tokenarray.hxx
index e20d5781b26a..c6433aa43b07 100644
--- a/include/formula/tokenarray.hxx
+++ b/include/formula/tokenarray.hxx
@@ -114,7 +114,6 @@ public:
FormulaToken* GetNextReferenceRPN();
FormulaToken* GetNextReferenceOrName();
FormulaToken* GetNextColRowName();
- FormulaToken* GetNextOpCodeRPN( OpCode );
/// Peek at nIdx-1 if not out of bounds, decrements nIdx if successful. Returns NULL if not.
FormulaToken* PeekPrev( sal_uInt16 & nIdx );
FormulaToken* PeekNext();
diff --git a/include/test/mtfxmldump.hxx b/include/test/mtfxmldump.hxx
index 86ffe9dcd3bb..e91eb6bb1d5e 100644
--- a/include/test/mtfxmldump.hxx
+++ b/include/test/mtfxmldump.hxx
@@ -27,7 +27,6 @@ public:
void filterActionType(const sal_uInt16 nActionType, bool bShouldFilter);
void filterAllActionTypes();
- void filterNoneActionTypes();
/** The actual result that will be used for testing.
diff --git a/include/unotools/datetime.hxx b/include/unotools/datetime.hxx
index 56bdec948f47..d07402be20b1 100644
--- a/include/unotools/datetime.hxx
+++ b/include/unotools/datetime.hxx
@@ -43,7 +43,6 @@ namespace utl
UNOTOOLS_DLLPUBLIC void typeConvert(const starutil::DateTime& _rDateTime, DateTime& _rOut);
UNOTOOLS_DLLPUBLIC void extractDate(const starutil::DateTime& _rDateTime, starutil::Date& _rOut);
- UNOTOOLS_DLLPUBLIC void extractTime(const starutil::DateTime& _rDateTime, starutil::Time& _rOut);
UNOTOOLS_DLLPUBLIC ::rtl::OUString toISO8601(const starutil::DateTime& _rDateTime);
UNOTOOLS_DLLPUBLIC bool ISO8601parseDateTime(const ::rtl::OUString &i_rIn, starutil::DateTime& o_rDateTime);
diff --git a/sc/inc/document.hxx b/sc/inc/document.hxx
index c7b797b16c5f..0dc3239441b3 100644
--- a/sc/inc/document.hxx
+++ b/sc/inc/document.hxx
@@ -2054,7 +2054,6 @@ public:
void AddSubTotalCell(ScFormulaCell* pCell);
void RemoveSubTotalCell(ScFormulaCell* pCell);
void SetSubTotalCellsDirty(const ScRange& rDirtyRange);
- void MarkSubTotalCells( sc::ColumnSpanSet& rSet, const ScRange& rRange, bool bVal ) const;
sal_uInt16 GetTextWidth( const ScAddress& rPos ) const;
diff --git a/sc/source/core/data/document.cxx b/sc/source/core/data/document.cxx
index e68758c4ca24..549ab9c6ebd1 100644
--- a/sc/source/core/data/document.cxx
+++ b/sc/source/core/data/document.cxx
@@ -5858,19 +5858,6 @@ void ScDocument::SetSubTotalCellsDirty(const ScRange& rDirtyRange)
maSubTotalCells.swap(aNewSet); // update the list.
}
-void ScDocument::MarkSubTotalCells( sc::ColumnSpanSet& rSet, const ScRange& rRange, bool bVal ) const
-{
- for (SCTAB nTab = rRange.aStart.Tab(); nTab <= rRange.aEnd.Tab(); ++nTab)
- {
- const ScTable* pTab = FetchTable(nTab);
- if (!pTab)
- continue;
-
- pTab->MarkSubTotalCells(
- rSet, rRange.aStart.Col(), rRange.aStart.Row(), rRange.aEnd.Col(), rRange.aEnd.Row(), bVal);
- }
-}
-
sal_uInt16 ScDocument::GetTextWidth( const ScAddress& rPos ) const
{
SCTAB nTab = rPos.Tab();
diff --git a/sc/source/ui/inc/tabvwsh.hxx b/sc/source/ui/inc/tabvwsh.hxx
index 346f66fcef65..548c6ae42820 100644
--- a/sc/source/ui/inc/tabvwsh.hxx
+++ b/sc/source/ui/inc/tabvwsh.hxx
@@ -339,7 +339,6 @@ public:
void FillFieldData( ScHeaderFieldData& rData );
- void SetChartArea( const ScRangeListRef& rSource, const Rectangle& rDest );
bool GetChartArea( ScRangeListRef& rSource, Rectangle& rDest, SCTAB& rTab ) const;
void SetEditChartName(const OUString& aStr){aEditChartName=aStr;}
diff --git a/sc/source/ui/view/tabvwsh4.cxx b/sc/source/ui/view/tabvwsh4.cxx
index f46b5bf22683..87e326d4b98c 100644
--- a/sc/source/ui/view/tabvwsh4.cxx
+++ b/sc/source/ui/view/tabvwsh4.cxx
@@ -1891,14 +1891,6 @@ void ScTabViewShell::FillFieldData( ScHeaderFieldData& rData )
// eNumType kennt der Dialog selber
}
-void ScTabViewShell::SetChartArea( const ScRangeListRef& rSource, const Rectangle& rDest )
-{
- bChartAreaValid = true;
- aChartSource = rSource;
- aChartPos = rDest;
- nChartDestTab = GetViewData().GetTabNo();
-}
-
bool ScTabViewShell::GetChartArea( ScRangeListRef& rSource, Rectangle& rDest, SCTAB& rTab ) const
{
rSource = aChartSource;
diff --git a/test/source/mtfxmldump.cxx b/test/source/mtfxmldump.cxx
index 9223797222c4..87588c1f869f 100644
--- a/test/source/mtfxmldump.cxx
+++ b/test/source/mtfxmldump.cxx
@@ -245,11 +245,6 @@ void MetafileXmlDump::filterAllActionTypes()
maFilter.assign(constMaxActionType, true);
}
-void MetafileXmlDump::filterNoneActionTypes()
-{
- maFilter.assign(constMaxActionType, false);
-}
-
xmlDocPtr MetafileXmlDump::dumpAndParse(GDIMetaFile& rMetaFile, const OUString& rTempStreamName)
{
boost::scoped_ptr<SvStream> pStream;
diff --git a/unotools/source/misc/datetime.cxx b/unotools/source/misc/datetime.cxx
index f898f79bd4f8..8709aac23077 100644
--- a/unotools/source/misc/datetime.cxx
+++ b/unotools/source/misc/datetime.cxx
@@ -216,14 +216,6 @@ void extractDate(const starutil::DateTime& _rDateTime, starutil::Date& _rOut)
_rOut.Year = _rDateTime.Year;
}
-void extractTime(const starutil::DateTime& _rDateTime, starutil::Time& _rOut)
-{
- _rOut.Hours = _rDateTime.Hours;
- _rOut.Minutes = _rDateTime.Minutes;
- _rOut.Seconds = _rDateTime.Seconds;
- _rOut.NanoSeconds = _rDateTime.NanoSeconds;
-}
-
OUString toISO8601(const starutil::DateTime& rDateTime)
{
OUStringBuffer rBuffer;
diff --git a/unusedcode.easy b/unusedcode.easy
index e26494b0646e..5da63ae1fe44 100644
--- a/unusedcode.easy
+++ b/unusedcode.easy
@@ -9,7 +9,6 @@ Json::Json(std::__debug::map<std::basic_string<char, std::char_traits<char>, std
Json::Json(std::__debug::map<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, boost::shared_ptr<libcmis::Property>, std::less<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<std::pair<std::basic_string<char, std::char_traits<char>, std::allocator<char> > const, boost::shared_ptr<libcmis::Property> > > > const&)
Json::swap(Json&)
MetaAction::TypeName(unsigned short)
-MetafileXmlDump::filterNoneActionTypes()
OpenGLContext::renderToFile()
OpenGLRender::CreateTextTexture(rtl::OUString const&, Font, long, com::sun::star::awt::Point, com::sun::star::awt::Size, long)
OutputDevice::GetCanvas() const
@@ -24,12 +23,10 @@ SalGraphics::drawTransformedBitmap(basegfx::B2DPoint const&, basegfx::B2DPoint c
ScDBFuncUndo::SetDrawUndoAction(SdrUndoAction*)
ScDocument::AreaBroadcastInRange(ScRange const&, ScHint const&)
ScDocument::CreateFormatTable() const
-ScDocument::MarkSubTotalCells(sc::ColumnSpanSet&, ScRange const&, bool) const
ScFormulaCellGroup::scheduleCompilation()
ScRawToken::Clone() const
ScRawToken::Delete()
ScTabView::DrawMarkRect(Rectangle const&)
-ScTabViewShell::SetChartArea(tools::SvRef<ScRangeList> const&, Rectangle const&)
ScTable::AttachFormulaCells(sc::StartListeningContext&, short, int, short, int)
ScTable::DetachFormulaCells(sc::EndListeningContext&, short, int, short, int)
ScVbaFormat<ooo::vba::excel::XStyle>::getAddIndent()
@@ -177,7 +174,6 @@ calc::OCellListSource::checkConsistency_static(void const*)
calc::OCellValueBinding::checkConsistency_static(void const*)
canvas::createSurfaceProxyManager(boost::shared_ptr<canvas::IRenderModule> const&)
chart::ChartTypeUnoDlg::Create(com::sun::star::uno::Reference<com::sun::star::uno::XComponentContext> const&)
-chart::InternalData::clearDefaultData()
chart::ShapeToolbarController::create(com::sun::star::uno::Reference<com::sun::star::uno::XComponentContext> const&)
chart::opengl3D::Bar::Bar(chart::opengl3D::OpenGL3DRenderer*, glm::detail::tmat4x4<float> const&, unsigned int, unsigned int)
comphelper::OAccessibleImplementationAccess::setStateBit(short, bool)
@@ -187,7 +183,6 @@ comphelper::detail::ConfigurationWrapper::setLocalizedPropertyValue(boost::share
connectivity::firebird::release(int&, cppu::OBroadcastHelperVar<cppu::OMultiTypeInterfaceContainerHelper, com::sun::star::uno::Type>&, com::sun::star::uno::Reference<com::sun::star::uno::XInterface>&, com::sun::star::lang::XComponent*)
connectivity::sdbcx::OGroup::OGroup(bool)
connectivity::sdbcx::OGroup::OGroup(rtl::OUString const&, bool)
-formula::FormulaTokenArray::GetNextOpCodeRPN(OpCodeEnum)
oglcanvas::CanvasHelper::flush() const
oglcanvas::TextLayout::draw(com::sun::star::rendering::ViewState const&, com::sun::star::rendering::RenderState const&, com::sun::star::uno::Reference<com::sun::star::rendering::XGraphicDevice> const&) const
oox::drawingml::TextListStyle::dump() const
@@ -211,5 +206,4 @@ svl::GridPrinter::resize(unsigned long, unsigned long)
svt::CheckInvariants(void const*)
svt::table::TableControl_Impl::impl_checkInvariants() const
svt::table::UnoControlTableModel::checkInvariants() const
-utl::extractTime(com::sun::star::util::DateTime const&, com::sun::star::util::Time&)
vcl::MapChar(vcl::_TrueTypeFont*, unsigned short, bool)