Simplify. Remove debugging assert.

This commit is contained in:
Steve Checkoway
2006-07-30 11:27:56 +00:00
parent ae8d0b689b
commit 3164f7a15f
2 changed files with 1 additions and 9 deletions
-8
View File
@@ -336,14 +336,6 @@ void Steps::CreateBlank( StepsType ntTo )
this->SetNoteData( noteData );
}
const Steps *Steps::Real() const
{
ASSERT( this );
if(parent) return parent;
return this;
}
bool Steps::IsAutogen() const
{
return parent != NULL;
+1 -1
View File
@@ -81,7 +81,7 @@ protected:
mutable bool m_bNoteDataIsFilled;
mutable RString m_sNoteDataCompressed;
const Steps *Real() const;
inline const Steps *Real() const { return parent ?: this; }
RString m_sFilename;
bool m_bSavedToDisk; // true if this was loaded from disk or has been saved to disk.