diff options
| author | Karsten Heimrich <karsten.heimrich@qt.io> | 2020-03-25 15:28:04 +0100 |
|---|---|---|
| committer | Karsten Heimrich <karsten.heimrich@qt.io> | 2020-04-09 02:49:08 +0200 |
| commit | 9ad8b80fb970cfe96c7c7bae781b20528b2ce334 (patch) | |
| tree | bf6bcf468508751cb6757aad0678152b496b8638 /src/concurrent/qtconcurrentfunctionwrappers.h | |
| parent | 0f968085b9800dc3d7e25248473bd91c6fffdfa7 (diff) | |
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>
Diffstat (limited to 'src/concurrent/qtconcurrentfunctionwrappers.h')
| -rw-r--r-- | src/concurrent/qtconcurrentfunctionwrappers.h | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/src/concurrent/qtconcurrentfunctionwrappers.h b/src/concurrent/qtconcurrentfunctionwrappers.h index 7ba6720e039..4731de77cc2 100644 --- a/src/concurrent/qtconcurrentfunctionwrappers.h +++ b/src/concurrent/qtconcurrentfunctionwrappers.h @@ -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 { |
