Kaydet (Commit) 42925ee1 authored tarafından Enrico Weigelt, metux ITS's avatar Enrico Weigelt, metux ITS Kaydeden (comit) Caolán McNamara

dropped dead code from svg

Change-Id: I73244d54f182f44c08a942dee95ff11b53a24f5a
Reviewed-on: https://gerrit.libreoffice.org/1078Reviewed-by: 's avatarCaolán McNamara <caolanm@redhat.com>
Tested-by: 's avatarCaolán McNamara <caolanm@redhat.com>
üst 4a519107
...@@ -68,7 +68,6 @@ namespace svgio ...@@ -68,7 +68,6 @@ namespace svgio
/// add/remove styles to mapper /// add/remove styles to mapper
void addSvgStyleAttributesToMapper(const rtl::OUString& rStr, const SvgStyleAttributes& rSvgStyleAttributes); void addSvgStyleAttributesToMapper(const rtl::OUString& rStr, const SvgStyleAttributes& rSvgStyleAttributes);
void removeSvgStyleAttributesFromMapper(const rtl::OUString& rStr);
/// find a style by it's Id /// find a style by it's Id
bool hasSvgStyleAttributesById() const { return !maIdStyleTokenMapperList.empty(); } bool hasSvgStyleAttributesById() const { return !maIdStyleTokenMapperList.empty(); }
......
...@@ -304,7 +304,6 @@ namespace svgio ...@@ -304,7 +304,6 @@ namespace svgio
/// fill rule content /// fill rule content
bool getFillRule() const; bool getFillRule() const;
void setFillRule(const bool* pFillRule = 0);
/// fill StrokeDasharray content /// fill StrokeDasharray content
const SvgNumberVector& getStrokeDasharray() const; const SvgNumberVector& getStrokeDasharray() const;
......
...@@ -87,14 +87,6 @@ namespace svgio ...@@ -87,14 +87,6 @@ namespace svgio
} }
} }
void SvgDocument::removeSvgStyleAttributesFromMapper(const rtl::OUString& rStr)
{
if(rStr.getLength())
{
maIdStyleTokenMapperList.erase(rStr);
}
}
const SvgStyleAttributes* SvgDocument::findSvgStyleAttributesById(const rtl::OUString& rStr) const const SvgStyleAttributes* SvgDocument::findSvgStyleAttributesById(const rtl::OUString& rStr) const
{ {
const IdStyleTokenMapper::const_iterator aResult(maIdStyleTokenMapperList.find(rStr)); const IdStyleTokenMapper::const_iterator aResult(maIdStyleTokenMapperList.find(rStr));
......
...@@ -2049,19 +2049,6 @@ namespace svgio ...@@ -2049,19 +2049,6 @@ namespace svgio
return true; return true;
} }
void SvgStyleAttributes::setFillRule(const bool* pFillRule)
{
if(pFillRule)
{
maFillRuleSet = true;
maFillRule = *pFillRule;
}
else
{
maFillRuleSet = false;
}
}
const SvgNumberVector& SvgStyleAttributes::getStrokeDasharray() const const SvgNumberVector& SvgStyleAttributes::getStrokeDasharray() const
{ {
if(!maStrokeDasharray.empty()) if(!maStrokeDasharray.empty())
......
...@@ -72,23 +72,8 @@ namespace svgio ...@@ -72,23 +72,8 @@ namespace svgio
// read access to evtl. advanced position // read access to evtl. advanced position
double getPosition() const { return mfPosition; } double getPosition() const { return mfPosition; }
// get length of given text
double getLength(const rtl::OUString& rText) const;
}; };
double pathTextBreakupHelper::getLength(const rtl::OUString& rText) const
{
const sal_uInt32 nLength(rText.getLength());
if(nLength)
{
return getTextLayouter().getTextWidth(rText, 0, nLength);
}
return 0.0;
}
void pathTextBreakupHelper::freeB2DCubicBezierHelper() void pathTextBreakupHelper::freeB2DCubicBezierHelper()
{ {
if(mpB2DCubicBezierHelper) if(mpB2DCubicBezierHelper)
......
...@@ -324,7 +324,6 @@ public: ...@@ -324,7 +324,6 @@ public:
SvListView(); // Sets the Model to 0 SvListView(); // Sets the Model to 0
virtual ~SvListView(); virtual ~SvListView();
void Clear(); void Clear();
SvTreeList* GetModel() const;
virtual void SetModel( SvTreeList* ); virtual void SetModel( SvTreeList* );
virtual void ModelNotification( virtual void ModelNotification(
sal_uInt16 nActionId, sal_uInt16 nActionId,
......
...@@ -1264,11 +1264,6 @@ void SvListView::Clear() ...@@ -1264,11 +1264,6 @@ void SvListView::Clear()
} }
} }
SvTreeList* SvListView::GetModel() const
{
return pModel;
}
void SvListView::SetModel( SvTreeList* pNewModel ) void SvListView::SetModel( SvTreeList* pNewModel )
{ {
DBG_CHKTHIS(SvListView,0); DBG_CHKTHIS(SvListView,0);
......
...@@ -10,7 +10,6 @@ ScMenuFloatingWindow::getDoc() ...@@ -10,7 +10,6 @@ ScMenuFloatingWindow::getDoc()
ScVbaFormat<ooo::vba::excel::XStyle>::getAddIndent() ScVbaFormat<ooo::vba::excel::XStyle>::getAddIndent()
ScVbaFormat<ooo::vba::excel::XStyle>::setAddIndent(com::sun::star::uno::Any const&) ScVbaFormat<ooo::vba::excel::XStyle>::setAddIndent(com::sun::star::uno::Any const&)
String::String(unsigned short) String::String(unsigned short)
SvListView::GetModel() const
SvTreeList::GetChildIterators(SvTreeListEntry const*) const SvTreeList::GetChildIterators(SvTreeListEntry const*) const
SvtGraphicStroke::toString() const SvtGraphicStroke::toString() const
TextEngine::GetLeftMargin() const TextEngine::GetLeftMargin() const
...@@ -58,9 +57,6 @@ sd::ToolPanelPaneShell::RegisterInterface(SfxModule*) ...@@ -58,9 +57,6 @@ sd::ToolPanelPaneShell::RegisterInterface(SfxModule*)
sd::ViewShellBase::CreateInstance(SfxViewFrame*, SfxViewShell*) sd::ViewShellBase::CreateInstance(SfxViewFrame*, SfxViewShell*)
std::__cxx1998::vector<SfxFilter*, std::allocator<SfxFilter*> >::~vector() std::__cxx1998::vector<SfxFilter*, std::allocator<SfxFilter*> >::~vector()
std::__cxx1998::vector<std::pair<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, 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> >, std::basic_string<char, std::char_traits<char>, std::allocator<char> > > > >::~vector() std::__cxx1998::vector<std::pair<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, 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> >, std::basic_string<char, std::char_traits<char>, std::allocator<char> > > > >::~vector()
svgio::svgreader::SvgDocument::removeSvgStyleAttributesFromMapper(rtl::OUString const&)
svgio::svgreader::SvgStyleAttributes::setFillRule(bool const*)
svgio::svgreader::pathTextBreakupHelper::getLength(rtl::OUString const&) const
test::BootstrapFixtureBase::getPathFromWorkdir(char const*) test::BootstrapFixtureBase::getPathFromWorkdir(char const*)
test::BootstrapFixtureBase::getURLFromWorkdir(char const*) test::BootstrapFixtureBase::getURLFromWorkdir(char const*)
unicode::isAlphaDigit(unsigned short) unicode::isAlphaDigit(unsigned short)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment