Skip to content

Commit b7c4e96

Browse files
authored
removed unused parameter types[] (#6961)
1 parent 17160aa commit b7c4e96

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/fread.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1195,7 +1195,7 @@ static reader_fun_t fun[NUMTYPE] = {
11951195

11961196
static int disabled_parsers[NUMTYPE] = {0};
11971197

1198-
static int detect_types( const char **pch, int8_t type[], int ncol, bool *bumped) {
1198+
static int detect_types(const char **pch, int ncol, bool *bumped) {
11991199
// used in sampling column types and whether column names are present
12001200
// test at most ncol fields. If there are fewer fields, the data read step later
12011201
// will error (if fill==false) when the line number is known, so we don't need to handle that here.
@@ -1951,7 +1951,7 @@ int freadMain(freadMainArgs _args) {
19511951

19521952
while(ch<eof && jumpLine++<jumpLines) {
19531953
const char *lineStart = ch;
1954-
int thisNcol = detect_types(&ch, tmpType, ncol, &bumped);
1954+
int thisNcol = detect_types(&ch, ncol, &bumped);
19551955
if (thisNcol==0 && skipEmptyLines) {
19561956
if (eol(&ch)) ch++;
19571957
continue;
@@ -2006,7 +2006,7 @@ int freadMain(freadMainArgs _args) {
20062006
if (dec == '\0') { // in files without jumps, dec could still be undecided
20072007
linesForDecDot = 0;
20082008
}
2009-
detect_types(&ch, tmpType, ncol, &bumped);
2009+
detect_types(&ch, ncol, &bumped);
20102010
if (dec == '\0') {
20112011
dec = linesForDecDot < 0 ? ',' : '.';
20122012
if (verbose) {

0 commit comments

Comments
 (0)