Skip to content

Commit 7b46c14

Browse files
committed
Remove dead code from tests
1 parent b36e5fc commit 7b46c14

File tree

3 files changed

+2
-12
lines changed

3 files changed

+2
-12
lines changed

cpp11test/src/test-doubles.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ context("doubles-C++") {
233233
UNPROTECT(1);
234234
}
235235

236-
#if defined(__APPLE__) && defined(R_VERSION) && R_VERSION >= R_Version(3, 5, 0)
236+
#if defined(__APPLE__)
237237
test_that("writable::doubles(ALTREP_SEXP)") {
238238
// ALTREP compact-seq
239239
auto seq = cpp11::package("base")["seq"];

cpp11test/src/test-integers.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
#include "Rversion.h"
21
#include "cpp11/R.hpp"
32
#include "cpp11/doubles.hpp"
43
#include "cpp11/function.hpp"
@@ -218,7 +217,7 @@ context("integers-C++") {
218217
expect_true(x[2] == 3);
219218
}
220219

221-
#if defined(__APPLE__) && defined(R_VERSION) && R_VERSION >= R_Version(3, 5, 0)
220+
#if defined(__APPLE__)
222221
test_that("writable::integers(ALTREP_SEXP)") {
223222
// ALTREP compact-seq
224223
auto seq = cpp11::package("base")["seq"];

cpp11test/src/test-r_vector.cpp

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,6 @@
77

88
#include <algorithm> // for max_element
99

10-
#ifdef _WIN32
11-
#include "Rversion.h"
12-
#define CPP11_HAS_IS_UTILITIES R_VERSION >= R_Version(4, 0, 0)
13-
#else
14-
#define CPP11_HAS_IS_UTILITIES 1
15-
#endif
16-
17-
#if CPP11_HAS_IS_UTILITIES
1810
context("r_vector-capabilities-C++") {
1911
test_that("read only vector capabilities") {
2012
using cpp11::integers;
@@ -77,7 +69,6 @@ context("r_vector-capabilities-C++") {
7769
expect_true(std::is_move_assignable<integers::proxy>::value);
7870
}
7971
}
80-
#endif
8172

8273
context("r_vector-C++") {
8374
test_that("writable vector temporary isn't leaked (integer) (#338)") {

0 commit comments

Comments
 (0)