1// Aseprite
2// Copyright (C) 2017 David Capello
3//
4// This program is distributed under the terms of
5// the End-User License Agreement for Aseprite.
6
7#ifdef HAVE_CONFIG_H
8#include "config.h"
9#endif
10
11#include "app/cmd/remove_slice.h"
12
13namespace app {
14namespace cmd {
15
16using namespace doc;
17
18RemoveSlice::RemoveSlice(Sprite* sprite, Slice* slice)
19 : AddSlice(sprite, slice)
20{
21}
22
23void RemoveSlice::onExecute()
24{
25 AddSlice::onUndo();
26}
27
28void RemoveSlice::onUndo()
29{
30 AddSlice::onRedo();
31}
32
33void RemoveSlice::onRedo()
34{
35 AddSlice::onUndo();
36}
37
38} // namespace cmd
39} // namespace app
40