Skip to content

Commit c5cd6f6

Browse files
remove unused things
1 parent a6a811f commit c5cd6f6

2 files changed

Lines changed: 1 addition & 18 deletions

File tree

man/Rcpp.package.skeleton.Rd

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,7 @@ Rcpp.package.skeleton(name = "anRpackage", list = character(),
4747

4848
The \samp{NAMESPACE}, if any, gains a \code{useDynLib} directive.
4949

50-
The \samp{src} directory is created if it does not exists and
51-
a \samp{Makevars} file is added setting the environment variables
52-
\samp{PKG_LIBS} to accomodate the necessary flags to link with the Rcpp library.
50+
The \samp{src} directory is created if it does not exists.
5351

5452
If \code{cpp_files} are provided then they will be copied to the \samp{src}
5553
directory.

src/barrier.cpp

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -57,20 +57,10 @@ const char* char_nocheck__impl( SEXP x ){ return CHAR(x); }
5757

5858
static bool Rcpp_cache_know = false ;
5959
static SEXP Rcpp_cache = R_NilValue ;
60-
static SEXP Rcpp_protection_stack = R_NilValue ;
6160

6261
#define RCPP_HASH_CACHE_INDEX 4
63-
#define RCPP_PROTECTION_STACK_INDEX 5
6462
#define RCPP_CACHE_SIZE 6
6563

66-
#ifndef RCPP_PROTECT_STACK_INITIAL_SIZE
67-
#define RCPP_PROTECT_STACK_INITIAL_SIZE 16384
68-
#endif
69-
70-
#ifndef RCPP_PROTECT_STACK_INCREMENT
71-
#define RCPP_PROTECT_STACK_INCREMENT 4096
72-
#endif
73-
7464
#ifndef RCPP_HASH_CACHE_INITIAL_SIZE
7565
#define RCPP_HASH_CACHE_INITIAL_SIZE 1024
7666
#endif
@@ -83,7 +73,6 @@ SEXP get_rcpp_cache() {
8373
SEXP RCPP = PROTECT( Rf_eval(Rf_lang2( getNamespaceSym, Rf_mkString("Rcpp11") ), R_GlobalEnv) );
8474
Rcpp_cache = Rf_findVarInFrame( RCPP, Rf_install(".rcpp_cache") ) ;
8575
Rcpp_cache_know = true ;
86-
Rcpp_protection_stack = VECTOR_ELT(Rcpp_cache, RCPP_PROTECTION_STACK_INDEX) ;
8776
UNPROTECT(1) ;
8877
}
8978
RCPP_DEBUG( " [get_rcpp_cache] Rcpp_cache = <%p>", Rcpp_cache )
@@ -131,10 +120,6 @@ SEXP init_Rcpp11_cache(){
131120
set_current_error( cache, R_NilValue ) ;
132121
RCPP_SET_VECTOR_ELT( cache, 3, R_NilValue ) ; // stack trace
133122
RCPP_SET_VECTOR_ELT( cache, RCPP_HASH_CACHE_INDEX, Rf_allocVector(INTSXP, RCPP_HASH_CACHE_INITIAL_SIZE) ) ;
134-
SEXP stack = PROTECT( Rf_allocVector(VECSXP, RCPP_PROTECT_STACK_INITIAL_SIZE) ) ;
135-
// we use true length to store "top"
136-
SET_TRUELENGTH(stack, -1 ) ;
137-
RCPP_SET_VECTOR_ELT( cache, RCPP_PROTECTION_STACK_INDEX, stack ) ;
138123
Rf_defineVar( Rf_install(".rcpp_cache"), cache, RCPP );
139124

140125
UNPROTECT(3) ;

0 commit comments

Comments
 (0)