Kaydet (Commit) d7f3dced authored tarafından Noel Grandin's avatar Noel Grandin

remove unused code in sfx2::sidebar

removes these methods:
sfx2::sidebar::Context::EvaluateMatch(std::vector<sfx2::sidebar::Context>)
sfx2::sidebar::EnumContext::EvaluateMatch(std::vector<sfx2::sidebar::EnumContext>)

Change-Id: I14314d526a5306530d0381ca8bf6ab150d3dd5a0
üst 1f00b24c
......@@ -142,10 +142,6 @@ public:
*/
sal_Int32 EvaluateMatch (const EnumContext& rOther) const;
/** Return the best match against the given list of contexts.
*/
sal_Int32 EvaluateMatch (const ::std::vector<EnumContext>& rOthers) const;
static Application GetApplicationEnum (const ::rtl::OUString& rsApplicationName);
static const ::rtl::OUString& GetApplicationName (const Application eApplication);
......
......@@ -69,30 +69,6 @@ sal_Int32 Context::EvaluateMatch (
sal_Int32 Context::EvaluateMatch (const ::std::vector<Context>& rOthers) const
{
sal_Int32 nBestMatch (NoMatch);
for (::std::vector<Context>::const_iterator
iContext(rOthers.begin()),
iEnd(rOthers.end());
iContext!=iEnd;
++iContext)
{
const sal_Int32 nMatch (EvaluateMatch(*iContext));
if (nMatch < nBestMatch)
{
if (nMatch == OptimalMatch)
{
// We will find no better match so stop searching.
return OptimalMatch;
}
nBestMatch = nMatch;
}
}
return nBestMatch;
}
......
......@@ -52,10 +52,6 @@ public:
*/
sal_Int32 EvaluateMatch (const Context& rOther) const;
/** Return the best match against the given list of contexts.
*/
sal_Int32 EvaluateMatch (const ::std::vector<Context>& rOthers) const;
bool operator== (const Context& rOther) const;
bool operator!= (const Context& rOther) const;
};
......
......@@ -310,34 +310,6 @@ sal_Int32 EnumContext::EvaluateMatch (
}
sal_Int32 EnumContext::EvaluateMatch (const ::std::vector<EnumContext>& rOthers) const
{
sal_Int32 nBestMatch (NoMatch);
for (::std::vector<EnumContext>::const_iterator
iContext(rOthers.begin()),
iEnd(rOthers.end());
iContext!=iEnd;
++iContext)
{
const sal_Int32 nMatch (EvaluateMatch(*iContext));
if (nMatch < nBestMatch)
{
if (nMatch == OptimalMatch)
{
// We will find no better match so stop searching.
return OptimalMatch;
}
nBestMatch = nMatch;
}
}
return nBestMatch;
}
} } // end of namespace sfx2::sidebar
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
......@@ -323,10 +323,8 @@ sd::presenter::PresenterCanvas::copyRect(com::sun::star::uno::Reference<com::sun
sdr::overlay::OverlayRectangle::setSecondPosition(basegfx::B2DPoint const&)
sdr::table::Cell::getName()
sdr::table::SdrTableObj::getRowCount() const
sfx2::sidebar::Context::EvaluateMatch(std::vector<sfx2::sidebar::Context, std::allocator<sfx2::sidebar::Context> > const&) const
sfx2::sidebar::ContextList::IsEmpty()
sfx2::sidebar::Deck::PrintWindowTree(std::vector<sfx2::sidebar::Panel*, std::allocator<sfx2::sidebar::Panel*> > const&)
sfx2::sidebar::EnumContext::EvaluateMatch(std::vector<sfx2::sidebar::EnumContext, std::allocator<sfx2::sidebar::EnumContext> > const&) const
sfx2::sidebar::EnumContext::GetContext() const
sfx2::sidebar::Paint::Set(sfx2::sidebar::Paint const&)
sfx2::sidebar::Panel::PrintWindowTree()
......
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