This commit is contained in:
张壹 2024-12-28 16:58:54 +08:00
parent 676c665619
commit bb6f97b6aa

View File

@ -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;