mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-11-03 15:30:21 +01:00
chore(editor): cleanup comments
This commit is contained in:
@@ -416,14 +416,12 @@ basic_cell::insert( TMemCell *Memorycell ) {
|
||||
// NOTE: memory cells are virtual 'points' hence they don't ever expand cell range
|
||||
}
|
||||
|
||||
// removes provided path from the cell
|
||||
void
|
||||
basic_cell::erase( TTrack *Path ) {
|
||||
|
||||
m_paths.erase(
|
||||
std::remove( std::begin( m_paths ), std::end( m_paths ), Path ),
|
||||
std::end( m_paths ) );
|
||||
// drop the path from the animation list, the cell won't update it anymore
|
||||
if( tTrackAnim == Path ) {
|
||||
tTrackAnim = Path->SwitchExtension->pNextAnim;
|
||||
Path->SwitchExtension->pNextAnim = nullptr;
|
||||
@@ -441,7 +439,6 @@ basic_cell::erase( TTrack *Path ) {
|
||||
// TODO: update cell bounding area
|
||||
}
|
||||
|
||||
// removes provided path from the lookup directory of the cell
|
||||
void
|
||||
basic_cell::unregister_end( TTrack *Path ) {
|
||||
|
||||
|
||||
@@ -145,10 +145,8 @@ public:
|
||||
// registers provided traction piece in the lookup directory of the cell
|
||||
void
|
||||
register_end( TTraction *Traction );
|
||||
// removes provided path from the cell
|
||||
void
|
||||
erase( TTrack *Path );
|
||||
// removes provided path from the lookup directory of the cell
|
||||
void
|
||||
unregister_end( TTrack *Path );
|
||||
// removes provided model instance from the cell
|
||||
@@ -314,7 +312,6 @@ public:
|
||||
void
|
||||
register_node( Type_ *Node, glm::dvec3 const &Point ) {
|
||||
cell( Point ).register_end( Node ); }
|
||||
// removes provided node from the lookup directory of the section enclosing specified point
|
||||
template <class Type_>
|
||||
void
|
||||
unregister_node( Type_ *Node, glm::dvec3 const &Point ) {
|
||||
@@ -446,7 +443,6 @@ public:
|
||||
auto const location{ Node->location() };
|
||||
if( point_inside( location ) ) {
|
||||
section( location ).erase( Node ); } }
|
||||
// removes specified node from the region and from the lookup directories of its ends
|
||||
template <class Type_>
|
||||
void
|
||||
erase_and_unregister( Type_ *Node ) {
|
||||
|
||||
Reference in New Issue
Block a user