Remove some dead code
Change-Id: I526d9baee260f018cec6076595a28be8596b6395 Reviewed-by: Edward Welbourne <edward.welbourne@qt.io> Reviewed-by: Vitaly Fanaskov <vitaly.fanaskov@qt.io> Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
This commit is contained in:
parent
0f968085b9
commit
9ad8b80fb9
@ -49,23 +49,6 @@ QT_BEGIN_NAMESPACE
|
||||
|
||||
namespace QtConcurrent {
|
||||
|
||||
template <typename T>
|
||||
class FunctionWrapper0
|
||||
{
|
||||
public:
|
||||
typedef T (*FunctionPointerType)();
|
||||
typedef T result_type;
|
||||
inline FunctionWrapper0(FunctionPointerType _functionPointer)
|
||||
:functionPointer(_functionPointer) { }
|
||||
|
||||
inline T operator()()
|
||||
{
|
||||
return functionPointer();
|
||||
}
|
||||
private:
|
||||
FunctionPointerType functionPointer;
|
||||
};
|
||||
|
||||
template <typename T, typename U>
|
||||
class FunctionWrapper1
|
||||
{
|
||||
@ -84,23 +67,6 @@ private:
|
||||
FunctionPointerType functionPointer;
|
||||
};
|
||||
|
||||
template <typename T, typename U, typename V>
|
||||
class FunctionWrapper2
|
||||
{
|
||||
public:
|
||||
typedef T (*FunctionPointerType)(U u, V v);
|
||||
typedef T result_type;
|
||||
inline FunctionWrapper2(FunctionPointerType _functionPointer)
|
||||
:functionPointer(_functionPointer) { }
|
||||
|
||||
inline T operator()(U u, V v)
|
||||
{
|
||||
return functionPointer(u, v);
|
||||
}
|
||||
private:
|
||||
FunctionPointerType functionPointer;
|
||||
};
|
||||
|
||||
template <typename T, typename C>
|
||||
class MemberFunctionWrapper
|
||||
{
|
||||
|
@ -523,24 +523,12 @@
|
||||
\sa blockingMappedReduced(), {Concurrent Map and Map-Reduce}
|
||||
*/
|
||||
|
||||
/*!
|
||||
\class QtConcurrent::FunctionWrapper0
|
||||
\inmodule QtConcurrent
|
||||
\internal
|
||||
*/
|
||||
|
||||
/*!
|
||||
\class QtConcurrent::FunctionWrapper1
|
||||
\inmodule QtConcurrent
|
||||
\internal
|
||||
*/
|
||||
|
||||
/*!
|
||||
\class QtConcurrent::FunctionWrapper2
|
||||
\inmodule QtConcurrent
|
||||
\internal
|
||||
*/
|
||||
|
||||
/*!
|
||||
\class QtConcurrent::MemberFunctionWrapper
|
||||
\inmodule QtConcurrent
|
||||
|
Loading…
Reference in New Issue
Block a user