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;