[CI] remove unused cpp test helper function (#8625)

This commit is contained in:
James Lamb 2022-12-27 12:47:52 -06:00 committed by GitHub
parent 3ceeb8c61c
commit b05abfc494
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 0 additions and 8 deletions

View File

@ -38,12 +38,6 @@ bool FileExists(const std::string& filename) {
return stat(filename.c_str(), &st) == 0; return stat(filename.c_str(), &st) == 0;
} }
int64_t GetFileSize(const std::string& filename) {
struct stat st;
stat(filename.c_str(), &st);
return st.st_size;
}
void CreateSimpleTestData(const std::string& filename) { void CreateSimpleTestData(const std::string& filename) {
CreateBigTestData(filename, 6); CreateBigTestData(filename, 6);
} }

View File

@ -50,8 +50,6 @@ Float RelError(Float l, Float r) {
bool FileExists(const std::string& filename); bool FileExists(const std::string& filename);
int64_t GetFileSize(const std::string& filename);
void CreateSimpleTestData(const std::string& filename); void CreateSimpleTestData(const std::string& filename);
// Create a libsvm format file with 3 entries per-row. `zero_based` specifies whether it's // Create a libsvm format file with 3 entries per-row. `zero_based` specifies whether it's