From: Dan Eble Date: Mon, 10 Aug 2015 15:16:04 +0000 (-0400) Subject: Issue 4549: Remove dead "!STD_VECTOR" code in flower tests X-Git-Tag: release/2.19.26-1~36 X-Git-Url: https://git.donarmstrong.com/?p=lilypond.git;a=commitdiff_plain;h=ec21294ce6ca5071618f622e4590318a7b24bbac Issue 4549: Remove dead "!STD_VECTOR" code in flower tests --- diff --git a/flower/test-std.cc b/flower/test-std.cc index 8fce64abe1..4add05a625 100644 --- a/flower/test-std.cc +++ b/flower/test-std.cc @@ -1,9 +1,3 @@ -#define STD_VECTOR 1 - -#if !STD_VECTOR -#define Array flower_vector -#endif - #define HAVE_BOOST_LAMBDA 1 #include "std-vector.hh" @@ -12,10 +6,6 @@ #define YAFFUT_MAIN #include "yaffut.hh" -#if !STD_VECTOR -#define vector flower_vector -#endif - using namespace std; template @@ -27,17 +17,6 @@ print (vector v) cout << endl; } -#if !STD_VECTOR -template -void -print (Link_array v) -{ - for (vsize i = 0; i < v.size (); i++) - cout << "v[" << i << "] = " << *v[i] << endl; - cout << endl; -} -#endif - FUNC (vector_erase) { vector v; @@ -118,11 +97,7 @@ FUNC (vector_insert) FUNC (parray_concat) { -#if !STD_VECTOR - Link_array u, v; -#else vector u, v; -#endif int a[5] = { 0, 1, 2, 3, 4 }; u.push_back (&a[0]); u.push_back (&a[1]); diff --git a/flower/test-string.cc b/flower/test-string.cc index 5ed243fb08..1967d43751 100644 --- a/flower/test-string.cc +++ b/flower/test-string.cc @@ -1,5 +1,3 @@ -#define STD_VECTOR 1 - #define HAVE_BOOST_LAMBDA 1 #include "std-vector.hh" @@ -7,10 +5,6 @@ #include "yaffut.hh" -#if !STD_VECTOR -#define vector flower_vector -#endif - using namespace std; FUNC (string_split_join)