[MSPAINT] Delete needless ImageModel::ResetToPrevious

CORE-19094
This commit is contained in:
Katayama Hirofumi MZ 2023-10-31 11:13:54 +09:00
parent ad12c6cdea
commit 6d7aaaade0
2 changed files with 0 additions and 13 deletions

View file

@ -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)

View file

@ -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);