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