Skip to content

Commit d111dcc

Browse files
committed
remove unreachable code
1 parent 4acabf0 commit d111dcc

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/assign.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -759,9 +759,6 @@ const char *memrecycle(const SEXP target, const SEXP where, const int start, con
759759
if (needUtf8Coerce) {
760760
sourceLevels = PROTECT(coerceUtf8IfNeeded(sourceLevels)); protecti++;
761761
targetLevels = PROTECT(coerceUtf8IfNeeded(targetLevels)); protecti++;
762-
if (sourceIsFactor && R_compute_identical(sourceLevels, targetLevels, 0)) needUtf8Coerce = false;
763-
}
764-
if (needUtf8Coerce) {
765762
const int nTargetLevels=length(targetLevels), nSourceLevels=length(sourceLevels);
766763
const SEXP *targetLevelsD=STRING_PTR_RO(targetLevels), *sourceLevelsD=STRING_PTR_RO(sourceLevels);
767764
SEXP newSource = PROTECT(allocVector(INTSXP, length(source))); protecti++;

0 commit comments

Comments
 (0)