Skip to content

Commit 4cfdf8a

Browse files
committed
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
1 parent 56927e5 commit 4cfdf8a

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed

tests/test_compose.cc

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -31,25 +31,6 @@ struct set_void
3131

3232
struct get
3333
{
34-
#ifdef SIGC_CXX_TYPEOF
35-
bool operator()()
36-
{
37-
result_stream << "get() ";
38-
return true;
39-
}
40-
41-
int operator()(int i)
42-
{
43-
result_stream << "get(" << i << ") ";
44-
return i * 2;
45-
}
46-
47-
double operator()(int i, int j)
48-
{
49-
result_stream << "get(" << i << ", " << j << ") ";
50-
return double(i) / double(j);
51-
}
52-
#else
5334
double operator()()
5435
{
5536
result_stream << "get() ";
@@ -67,7 +48,6 @@ struct get
6748
result_stream << "get(" << i << ", " << j << ") ";
6849
return double(i) / double(j);
6950
}
70-
#endif
7151
};
7252

7353
} // end anonymous namespace

0 commit comments

Comments
 (0)