Issue #77 Remove outdated function

This commit is contained in:
Mat Sutcliffe
2020-08-25 22:20:59 +01:00
parent 4eb496c8e3
commit 15789902a1
3 changed files with 1 additions and 26 deletions

View File

@@ -21,17 +21,6 @@ namespace BlackMisc
namespace Predicates
{
namespace Private
{
//! \private
struct Matches
{
const CPropertyIndexVariantMap &m_map;
Matches(const CPropertyIndexVariantMap &map) : m_map(map) {}
template <class T> bool operator()(const T &value) const;
};
}
/*!
* Predicate which tests whether some member functions return some values.
* \param vs Pairs of { pointer to member function of T, value to compare it against }.
@@ -111,14 +100,6 @@ namespace BlackMisc
};
}
/*!
* Returns a predicate that returns true if its argument matches a captured CPropertyIndexVariantMap.
*/
inline auto Matches(const CPropertyIndexVariantMap &map) -> Private::Matches
{
return { map };
}
} //namespace Predicates
} //namespace BlackMisc

View File

@@ -312,12 +312,6 @@ namespace BlackMisc
return derived()->toQString().compare(compareValue.toQString());
}
} // Mixin
template <class T>
bool Predicates::Private::Matches::operator()(const T &value) const
{
return m_map.matches(value);
}
} // ns
Q_DECLARE_METATYPE(BlackMisc::CPropertyIndexVariantMap)