src/HumdrumFileBase.cpp
void HumdrumFileBase::deleteLine(int index) {
	if (index >= (int)m_lines.size()) {
		return;
	}
	if (index < 0) {
		return;
	}
	delete m_lines[index];
	for (int i=index+1; i<(int)m_lines.size(); i++) {
		m_lines[i-1] = m_lines[i];
	}
	m_lines.resize(m_lines.size() - 1);
}
//////////////////////////////
//
// HumdrumFileBase::deleteLine -- remove a line from the Humdrum file.
//    Is best used for global comments and reference records for now.
//    Other line types will cause parsing problems untill further
//    generalized to stitch previous next lines together.
//
:deleteLine -- remove a line from the Humdrum file.
Is best used for global comments and reference records for now.
Other line types will cause parsing problems untill further
generalized to stitch previous next lines together.
: deleteLine -- remove a line from the Humdrum file . Is best used for global comments and reference records for now . Other line types will cause parsing problems untill further generalized to stitch previous next lines together .
void HumdrumFileBase::deleteLine(int index) {
	if (index >= (int)m_lines.size()) {
		return;
	}
	if (index < 0) {
		return;
	}
	delete m_lines[index];
	for (int i=index+1; i<(int)m_lines.size(); i++) {
		m_lines[i-1] = m_lines[i];
	}
	m_lines.resize(m_lines.size() - 1);
}
void HumdrumFileBase :: deleteLine ( int index ) { if ( index >= ( int ) m_lines . size ( ) ) { return ; } if ( index < 0 ) { return ; } delete m_lines [ index ] ; for ( int i = index + 1 ; i < ( int ) m_lines . size ( ) ; i ++ ) { m_lines [ i - 1 ] = m_lines [ i ] ; } m_lines . resize ( m_lines . size ( ) - 1 ) ; }
HumdrumFileBase::deleteLine -- remove a line from the Humdrum file.
HumdrumFileBase :: deleteLine -- remove a line from the Humdrum file .