mirror of
https://github.com/reactos/reactos.git
synced 2024-12-26 17:14:41 +00:00
[MSPAINT] Delete needless ImageModel::ResetToPrevious
CORE-19094
This commit is contained in:
parent
ad12c6cdea
commit
6d7aaaade0
2 changed files with 0 additions and 13 deletions
|
@ -89,18 +89,6 @@ void ImageModel::Redo()
|
|||
NotifyImageChanged();
|
||||
}
|
||||
|
||||
void ImageModel::ResetToPrevious()
|
||||
{
|
||||
ATLTRACE("%s: %d\n", __FUNCTION__, m_currInd);
|
||||
|
||||
// Revert current item with previous item
|
||||
::DeleteObject(m_hBms[m_currInd]);
|
||||
m_hBms[m_currInd] = CopyDIBImage(m_hBms[(m_currInd + HISTORYSIZE - 1) % HISTORYSIZE]);
|
||||
::SelectObject(m_hDrawingDC, m_hBms[m_currInd]);
|
||||
|
||||
NotifyImageChanged();
|
||||
}
|
||||
|
||||
void ImageModel::ClearHistory()
|
||||
{
|
||||
for (int i = 0; i < HISTORYSIZE; ++i)
|
||||
|
|
|
@ -21,7 +21,6 @@ public:
|
|||
BOOL CanRedo() const { return m_redoSteps > 0; }
|
||||
void PushImageForUndo();
|
||||
void PushImageForUndo(HBITMAP hbm);
|
||||
void ResetToPrevious(void);
|
||||
void Undo(BOOL bClearRedo = FALSE);
|
||||
void Redo(void);
|
||||
void ClearHistory(void);
|
||||
|
|
Loading…
Reference in a new issue