From bb6f97b6aa204ab309ac8f22c6266af25f63f758 Mon Sep 17 00:00:00 2001 From: Yi Zhang Date: Sat, 28 Dec 2024 16:58:54 +0800 Subject: [PATCH] tmp --- lib/io/dsv_io.cpp | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/lib/io/dsv_io.cpp b/lib/io/dsv_io.cpp index 18466d1..cbdb8b7 100644 --- a/lib/io/dsv_io.cpp +++ b/lib/io/dsv_io.cpp @@ -313,11 +313,6 @@ int gctl::dsv_io::name_index(std::string name, bool iter_row) { if (iter_row) { - if (thead_ != RowHead && thead_ != BothHead) - { - throw std::runtime_error("[gctl::dsv_io] The table is initialized with no row names."); - } - for (size_t i = 0; i < row_num_; i++) { if (table_[i][0].str_ == name) return i; @@ -327,11 +322,6 @@ int gctl::dsv_io::name_index(std::string name, bool iter_row) } else { - if (thead_ != ColumnHead && thead_ != BothHead) - { - throw std::runtime_error("[gctl::dsv_io] The table is initialized with no column names."); - } - for (size_t i = 0; i < col_num_; i++) { if (table_[0][i].str_ == name) return i;