diff options
author | Murray Cumming <murrayc@murrayc.com> | 2019-11-02 21:29:55 +0100 |
---|---|---|
committer | Murray Cumming <murrayc@murrayc.com> | 2019-11-03 10:51:25 +0100 |
commit | 4cfdf8abe3c87b9298d26d2a30d62f21c66f8c7f (patch) | |
tree | 9bf5715dd1337914f55d631263dc8bf465c5010f | |
parent | 56927e5eb059bf57eebf92690baa03e4aacb3155 (diff) | |
download | sigc++-4cfdf8abe3c87b9298d26d2a30d62f21c66f8c7f.tar.gz |
tests: Remove unused SIGC_CXX_TYPEOF alternative code
This was apparently related to some long-since removed libsigc++ support
for a non-standard a gcc typeof() extension.
https://gcc.gnu.org/onlinedocs/gcc/Typeof.html
-rw-r--r-- | tests/test_compose.cc | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/tests/test_compose.cc b/tests/test_compose.cc index 9091bc8..11b6e3c 100644 --- a/tests/test_compose.cc +++ b/tests/test_compose.cc @@ -31,25 +31,6 @@ struct set_void struct get { -#ifdef SIGC_CXX_TYPEOF - bool operator()() - { - result_stream << "get() "; - return true; - } - - int operator()(int i) - { - result_stream << "get(" << i << ") "; - return i * 2; - } - - double operator()(int i, int j) - { - result_stream << "get(" << i << ", " << j << ") "; - return double(i) / double(j); - } -#else double operator()() { result_stream << "get() "; @@ -67,7 +48,6 @@ struct get result_stream << "get(" << i << ", " << j << ") "; return double(i) / double(j); } -#endif }; } // end anonymous namespace |