Skip to content
Snippets Groups Projects
Commit 0d8c68b2 authored by Mick Jordan's avatar Mick Jordan
Browse files

Merge pull request #669 in G/fastr from...

Merge pull request #669 in G/fastr from ~MICK.JORDAN_ORACLE.COM/fastr:feature/rffi-remove-gvars to master

* commit 'bb6d88bc':
  rffi: remove unused global variables
parents a59a9edd bb6d88bc
No related branches found
No related tags found
No related merge requests found
......@@ -83,11 +83,6 @@ static SEXP R_SrcrefSymbol_static;
static SEXP R_SrcfileSymbol_static;
static SEXP R_RestartToken_static;
// logical constants
static SEXP R_TrueValue_static;
static SEXP R_FalseValue_static;
static SEXP R_LogicalNAValue_static;
static const char *R_Home_static;
static const char *R_TempDir_static;
......@@ -437,12 +432,6 @@ void init_variables(JNIEnv *env, jobjectArray initialValues) {
R_BlankScalarString_static = ref;
} else if (strcmp(nameChars, "R_NamespaceEnvSymbol") == 0) {
R_NamespaceEnvSymbol_static = ref;
} else if (strcmp(nameChars, "R_TrueValue") == 0) {
R_TrueValue_static = ref;
} else if (strcmp(nameChars, "R_FalseValue") == 0) {
R_FalseValue_static = ref;
} else if (strcmp(nameChars, "R_LogicalNAValue") == 0) {
R_LogicalNAValue_static = ref;
} else {
char msg[128];
strcpy(msg, "non-null R variable not assigned: ");
......
......@@ -79,9 +79,6 @@ public enum RFFIVariables {
R_NaInt(RRuntime.INT_NA),
R_BlankString(CharSXPWrapper.create("")),
R_BlankScalarString(RDataFactory.createStringVectorFromScalar("")),
R_TrueValue(RRuntime.LOGICAL_TRUE),
R_FalseValue(RRuntime.LOGICAL_FALSE),
R_LogicalNAValue(RRuntime.LOGICAL_NA),
R_BaseSymbol(RDataFactory.createSymbol("base")),
R_NamespaceEnvSymbol(RDataFactory.createSymbol(".__NAMESPACE__.")),
R_RestartToken(null);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment