data.cc: Remove redundant ftype variable

This commit is contained in:
AbdealiJK 2016-12-04 08:06:26 +05:30 committed by Tianqi Chen
parent 1683e07461
commit b045ccd764

View File

@ -203,8 +203,6 @@ DMatrix* DMatrix::Load(const std::string& uri,
}
}
std::string ftype = file_format;
if (file_format == "auto") ftype = "libsvm";
std::unique_ptr<dmlc::Parser<uint32_t> > parser(
dmlc::Parser<uint32_t>::Create(fname.c_str(), partid, npart, file_format.c_str()));
DMatrix* dmat = DMatrix::Create(parser.get(), cache_file);