Skip to content

Commit 44eddbe

Browse files
committed
Remove unused R_ReadConnection()
1 parent 992cd01 commit 44eddbe

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

src/connection.h

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,6 @@ SEXP write_bin(SEXP data, SEXP con);
1414

1515
inline SEXP R_GetConnection(SEXP con) { return con; }
1616

17-
inline size_t R_ReadConnection(SEXP con, void* buf, size_t n) {
18-
SEXP res = PROTECT(read_bin(con, n));
19-
20-
R_xlen_t size = Rf_xlength(res);
21-
22-
memcpy(buf, RAW(res), size);
23-
24-
UNPROTECT(1);
25-
26-
return Rf_xlength(res);
27-
}
28-
2917
inline size_t R_WriteConnection(SEXP con, void* buf, size_t n) {
3018
SEXP payload = PROTECT(Rf_allocVector(RAWSXP, n));
3119

0 commit comments

Comments
 (0)