diff --git a/cpp/src/arrow/dataset/dataset_writer_test.cc b/cpp/src/arrow/dataset/dataset_writer_test.cc index ced18d5ef0d41..871b6ef6f5507 100644 --- a/cpp/src/arrow/dataset/dataset_writer_test.cc +++ b/cpp/src/arrow/dataset/dataset_writer_test.cc @@ -189,8 +189,7 @@ class DatasetWriterTestFixture : public testing::Test { } } - void AssertCreatedData(const std::vector& expected_files, - bool check_num_record_batches = true) { + void AssertCreatedData(const std::vector& expected_files) { counter_ = 0; for (const auto& expected_file : expected_files) { std::optional written_file = FindFile(expected_file.filename);