summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMurray Cumming <murrayc@murrayc.com>2019-11-02 21:29:55 +0100
committerMurray Cumming <murrayc@murrayc.com>2019-11-02 21:31:07 +0100
commit64230cdc72e5a9b8d9560fe45a223a65b1e93b0d (patch)
tree85341da178f6975bc9bef3027d4f4e87bc645929
parentd80622227a1316f0d29517eb7f8a6b93f9b41442 (diff)
downloadsigc++-tests-remove-sigc-cxx-typeof-ifdef.tar.gz
tests: Remove unused SIGC_CXX_TYPEOF alternative codetests-remove-sigc-cxx-typeof-ifdef
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.cc20
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