Skip to content

Commit b045ccd

Browse files
AbdealiLoKotqchen
authored andcommitted
data.cc: Remove redundant ftype variable
1 parent 1683e07 commit b045ccd

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/data/data.cc

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -203,8 +203,6 @@ DMatrix* DMatrix::Load(const std::string& uri,
203203
}
204204
}
205205

206-
std::string ftype = file_format;
207-
if (file_format == "auto") ftype = "libsvm";
208206
std::unique_ptr<dmlc::Parser<uint32_t> > parser(
209207
dmlc::Parser<uint32_t>::Create(fname.c_str(), partid, npart, file_format.c_str()));
210208
DMatrix* dmat = DMatrix::Create(parser.get(), cache_file);

0 commit comments

Comments
 (0)