Skip to content

Commit 64e99ab

Browse files
committed
Remove internalSpecificUndo and internalSpecificRedo methods
1 parent cbb6bc4 commit 64e99ab

File tree

11 files changed

+4
-77
lines changed

11 files changed

+4
-77
lines changed

src/Core/Geom/CommandEditGeom.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -163,8 +163,7 @@ void CommandEditGeom::internalUndo()
163163
// les entités détruites sont dites créées et inversement
164164
getInfoCommand().permCreatedDeleted();
165165

166-
// Annulation de la commande pour les entités dont l'état n'est pas mémorisé (cas des FcetedSurface)
167-
internalSpecificUndo();
166+
if (m_impl) m_impl->performUndo();
168167

169168
log (TkUtil::TraceLog (message, TkUtil::Log::TRACE_1));
170169
}
@@ -185,8 +184,7 @@ void CommandEditGeom::internalRedo()
185184
// les entités détruites sont dites créées et inversement
186185
getInfoCommand().permCreatedDeleted();
187186

188-
// Rejoue la commande pour les entités dont l'état n'est pas mémorisé (cas des FcetedSurface)
189-
internalSpecificRedo();
187+
if (m_impl) m_impl->performRedo();
190188

191189
startingOrcompletionLog (false);
192190

src/Core/Geom/CommandMirroring.cpp

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -51,16 +51,6 @@ void CommandMirroring::internalSpecificPreExecute() {
5151
m_impl->prePerform();
5252
}
5353
/*----------------------------------------------------------------------------*/
54-
void CommandMirroring::internalSpecificUndo()
55-
{
56-
m_impl->performUndo();
57-
}
58-
/*----------------------------------------------------------------------------*/
59-
void CommandMirroring::internalSpecificRedo()
60-
{
61-
m_impl->performRedo();
62-
}
63-
/*----------------------------------------------------------------------------*/
6454
} // end namespace Geom
6555
/*----------------------------------------------------------------------------*/
6656
} // end namespace Mgx3D

src/Core/Geom/CommandRemove.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,12 @@ CommandRemove::~CommandRemove()
3333
if(m_impl)
3434
delete m_impl;
3535
}
36-
3736
/*----------------------------------------------------------------------------*/
3837
void CommandRemove::internalSpecificPreExecute()
3938
{
4039
m_impl->prePerform();
41-
}/*----------------------------------------------------------------------------*/
40+
}
41+
/*----------------------------------------------------------------------------*/
4242
void CommandRemove::
4343
internalSpecificExecute()
4444
{

src/Core/Geom/CommandRotation.cpp

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -83,16 +83,6 @@ void CommandRotation::internalSpecificPreExecute()
8383
m_impl->prePerform();
8484
}
8585
/*----------------------------------------------------------------------------*/
86-
void CommandRotation::internalSpecificUndo()
87-
{
88-
m_impl->performUndo();
89-
}
90-
/*----------------------------------------------------------------------------*/
91-
void CommandRotation::internalSpecificRedo()
92-
{
93-
m_impl->performRedo();
94-
}
95-
/*----------------------------------------------------------------------------*/
9686
} // end namespace Geom
9787
/*----------------------------------------------------------------------------*/
9888
} // end namespace Mgx3D

src/Core/Geom/CommandScaling.cpp

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -173,16 +173,6 @@ void CommandScaling::internalSpecificPreExecute() {
173173
m_impl->prePerform();
174174
}
175175
/*----------------------------------------------------------------------------*/
176-
void CommandScaling::internalSpecificUndo()
177-
{
178-
m_impl->performUndo();
179-
}
180-
/*----------------------------------------------------------------------------*/
181-
void CommandScaling::internalSpecificRedo()
182-
{
183-
m_impl->performRedo();
184-
}
185-
/*----------------------------------------------------------------------------*/
186176
} // end namespace Geom
187177
/*----------------------------------------------------------------------------*/
188178
} // end namespace Mgx3D

src/Core/Geom/CommandTranslation.cpp

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -78,16 +78,6 @@ void CommandTranslation::internalSpecificPreExecute()
7878
m_impl->prePerform();
7979
}
8080
/*----------------------------------------------------------------------------*/
81-
void CommandTranslation::internalSpecificUndo()
82-
{
83-
m_impl->performUndo();
84-
}
85-
/*----------------------------------------------------------------------------*/
86-
void CommandTranslation::internalSpecificRedo()
87-
{
88-
m_impl->performRedo();
89-
}
90-
/*----------------------------------------------------------------------------*/
9181
} // end namespace Geom
9282
/*----------------------------------------------------------------------------*/
9383
} // end namespace Mgx3D

src/Core/protected/Geom/CommandEditGeom.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -63,12 +63,6 @@ class CommandEditGeom: public Geom::CommandCreateGeom {
6363
*/
6464
virtual void internalSpecificExecute()=0;
6565

66-
/*------------------------------------------------------------------------*/
67-
/** \brief Traitement spécifique délégué aux classes filles
68-
*/
69-
virtual void internalSpecificUndo(){}
70-
virtual void internalSpecificRedo(){}
71-
7266
/*------------------------------------------------------------------------*/
7367
/** \brief retourne une référence sur les entités supprimées. N'a de sens
7468
* qu'une fois l'opération perform() appelée.

src/Core/protected/Geom/CommandMirroring.h

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -63,13 +63,6 @@ class CommandMirroring: public Geom::CommandEditGeom{
6363
/** \brief initialisation de la commande
6464
*/
6565
void internalSpecificPreExecute();
66-
67-
/*------------------------------------------------------------------------*/
68-
/** \brief Traitement spécifique délégué aux classes filles
69-
*/
70-
void internalSpecificUndo();
71-
void internalSpecificRedo();
72-
7366
};
7467
/*----------------------------------------------------------------------------*/
7568
} // end namespace Geom

src/Core/protected/Geom/CommandRotation.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -66,12 +66,6 @@ class CommandRotation: public CommandEditGeom{
6666
*/
6767
void internalSpecificPreExecute();
6868

69-
/*------------------------------------------------------------------------*/
70-
/** \brief Traitement spécifique délégué aux classes filles
71-
*/
72-
void internalSpecificUndo();
73-
void internalSpecificRedo();
74-
7569
protected:
7670

7771
/// valide les paramètres

src/Core/protected/Geom/CommandScaling.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -119,12 +119,6 @@ class CommandScaling: public Geom::CommandEditGeom{
119119
*/
120120
void internalSpecificPreExecute();
121121

122-
/*------------------------------------------------------------------------*/
123-
/** \brief Traitement spécifique délégué aux classes filles
124-
*/
125-
void internalSpecificUndo();
126-
void internalSpecificRedo();
127-
128122
protected:
129123
/// valide les paramètres
130124
void validate();

0 commit comments

Comments
 (0)