Skip to content

Commit 547562b

Browse files
committed
Remove dead code from earlier R versions
1 parent 9577ca4 commit 547562b

1 file changed

Lines changed: 0 additions & 11 deletions

File tree

r/src/arrow_cpp11.h

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -38,17 +38,6 @@
3838
#define ARROW_R_DCHECK(EXPR)
3939
#endif
4040

41-
#if (R_VERSION < R_Version(3, 5, 0))
42-
#define LOGICAL_RO(x) ((const int*)LOGICAL(x))
43-
#define INTEGER_RO(x) ((const int*)INTEGER(x))
44-
#define REAL_RO(x) ((const double*)REAL(x))
45-
#define COMPLEX_RO(x) ((const Rcomplex*)COMPLEX(x))
46-
#define STRING_PTR_RO(x) ((const SEXP*)STRING_PTR(x))
47-
#define RAW_RO(x) ((const Rbyte*)RAW(x))
48-
#define DATAPTR_RO(x) ((const void*)STRING_PTR(x))
49-
#define DATAPTR(x) (void*)STRING_PTR(x)
50-
#endif
51-
5241
// R_altrep_class_name and R_altrep_class_package don't exist before R 4.6
5342
#if R_VERSION < R_Version(4, 6, 0)
5443
inline SEXP R_altrep_class_name(SEXP x) {

0 commit comments

Comments
 (0)