Remove unused flag ExpandCelCanvas::UseModifiedRegionAsUndoInfo

This commit is contained in:
David Capello 2020-11-03 20:47:13 -03:00
parent d73a67dde7
commit 4d6f4434cd
2 changed files with 1 additions and 8 deletions

View File

@ -525,12 +525,6 @@ public:
m_tx,
ExpandCelCanvas::Flags(
ExpandCelCanvas::NeedsSource |
// If the tool is freehand-like, we can use the modified
// region directly as undo information to save the modified
// pixels. See ExpandCelCanvas::commit() for details about this flag.
(getController()->isFreehand() ?
ExpandCelCanvas::UseModifiedRegionAsUndoInfo:
ExpandCelCanvas::None) |
(m_layer->isTilemap() &&
(!m_tilesMode || m_ink->isSelection()) ?
ExpandCelCanvas::PixelsBounds:

View File

@ -46,10 +46,9 @@ namespace app {
enum Flags {
None = 0,
NeedsSource = 1,
UseModifiedRegionAsUndoInfo = 2,
// Use tiles mode but with pixels bounds in dst image (e.g. for
// selection preview)
PixelsBounds = 4,
PixelsBounds = 2,
};
ExpandCelCanvas(Site site, Layer* layer,