Skip to content

Commit 0b4d1be

Browse files
committed
Remove gcov_flush(), not needed any more
uncovr works fine without it.
1 parent 1ac5fbc commit 0b4d1be

File tree

2 files changed

+0
-22
lines changed

2 files changed

+0
-22
lines changed

R/nanoparquet-package.R

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,3 @@ NULL
3434
#' @seealso [write_parquet()] on how to select a non-default encoding when
3535
#' writing Parquet files.
3636
NULL
37-
38-
gcov_flush <- function() {
39-
.Call(np_gcov_flush)
40-
}

src/rwrapper.cpp

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -125,23 +125,6 @@ SEXP is_ubsan_() {
125125
#endif
126126
}
127127

128-
// A function to flush test coverate data to disk
129-
#ifdef GCOV_COMPILE
130-
void __gcov_dump();
131-
void __gcov_reset();
132-
SEXP np_gcov_flush() {
133-
REprintf("Flushing coverage info\n");
134-
__gcov_dump();
135-
__gcov_reset();
136-
return R_NilValue;
137-
}
138-
#else
139-
SEXP np_gcov_flush(void) {
140-
return R_NilValue;
141-
}
142-
#endif
143-
144-
145128
// R native routine registration
146129
#define CALLDEF(name, n) \
147130
{ #name, (DL_FUNC)&name, n }
@@ -189,7 +172,6 @@ static const R_CallMethodDef R_CallDef[] = {
189172

190173
CALLDEF(is_asan_, 0),
191174
CALLDEF(is_ubsan_, 0),
192-
CALLDEF(np_gcov_flush, 0),
193175

194176
{NULL, NULL, 0}
195177
};

0 commit comments

Comments
 (0)