Skip to content
Snippets Groups Projects
Commit c1f4931b authored by Bienchen's avatar Bienchen
Browse files

MMCifParser: Removed checks for no. of columns, since this is supposed to...

MMCifParser: Removed checks for no. of columns, since this is supposed to happen already in the StarParser
parent 39d8d180
No related branches found
No related tags found
No related merge requests found
......@@ -141,20 +141,6 @@ bool MMCifParser::OnBeginLoop(const StarLoopDesc& header)
return false;
}
bool MMCifParser::EnsureEnoughColumns(const std::vector<StringRef>& columns,
size_t size)
{
if (columns.size() < size) {
if (profile_.fault_tolerant) {
return false;
}
throw IOException(this->FormatDiagnostic(STAR_DIAG_ERROR,
"Not enough data fields",
this->GetCurrentLinenum()));
}
return true;
}
mol::ResNum to_res_num(int num, char ins_code)
{
return mol::ResNum(num, ins_code==' ' ? '\0' : ins_code);
......@@ -207,9 +193,6 @@ bool MMCifParser::ParseAtomIdent(const std::vector<StringRef>& columns,
void MMCifParser::ParseAndAddAtom(const std::vector<StringRef>& columns)
{
if (!this->EnsureEnoughColumns(columns, 12)) {
return;
}
mol::XCSEditor editor=ent_handle_.EditXCS(mol::BUFFERED_EDIT); // potbl
char alt_loc=0;
String chain_name;
......
......@@ -125,14 +125,6 @@ public:
/// \return true for a valid id, false otherwise
bool IsValidPDBIdent(const StringRef& pdbid);
/// \brief Check no. of columns available.
///
/// \param columns fields
/// \param size required no. of columns
///
/// \return true if there are enough columns, false otherwise
bool EnsureEnoughColumns(const std::vector<StringRef>& columns, size_t size);
/// \brief ...
///
/// \param columns data row
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment