mirror of
https://github.com/aseprite/aseprite.git
synced 2025-02-19 06:40:42 +00:00
Remove some unnecessary destructors
This commit is contained in:
parent
767976c6bc
commit
e0a017ae02
@ -71,10 +71,6 @@ MovingCelState::MovingCelState(Editor* editor, MouseMessage* msg)
|
||||
}
|
||||
}
|
||||
|
||||
MovingCelState::~MovingCelState()
|
||||
{
|
||||
}
|
||||
|
||||
bool MovingCelState::onMouseUp(Editor* editor, MouseMessage* msg)
|
||||
{
|
||||
Document* document = editor->document();
|
||||
|
@ -1,5 +1,5 @@
|
||||
// Aseprite
|
||||
// Copyright (C) 2001-2015 David Capello
|
||||
// Copyright (C) 2001-2016 David Capello
|
||||
//
|
||||
// This program is distributed under the terms of
|
||||
// the End-User License Agreement for Aseprite.
|
||||
@ -25,7 +25,6 @@ namespace app {
|
||||
class MovingCelState : public StandbyState {
|
||||
public:
|
||||
MovingCelState(Editor* editor, ui::MouseMessage* msg);
|
||||
virtual ~MovingCelState();
|
||||
|
||||
virtual bool onMouseUp(Editor* editor, ui::MouseMessage* msg) override;
|
||||
virtual bool onMouseMove(Editor* editor, ui::MouseMessage* msg) override;
|
||||
|
@ -1,5 +1,5 @@
|
||||
// Aseprite
|
||||
// Copyright (C) 2015 David Capello
|
||||
// Copyright (C) 2015-2016 David Capello
|
||||
//
|
||||
// This program is distributed under the terms of
|
||||
// the End-User License Agreement for Aseprite.
|
||||
@ -29,10 +29,6 @@ MovingSymmetryState::MovingSymmetryState(Editor* editor, MouseMessage* msg,
|
||||
editor->captureMouse();
|
||||
}
|
||||
|
||||
MovingSymmetryState::~MovingSymmetryState()
|
||||
{
|
||||
}
|
||||
|
||||
bool MovingSymmetryState::onMouseUp(Editor* editor, MouseMessage* msg)
|
||||
{
|
||||
editor->backToPreviousState();
|
||||
|
@ -19,7 +19,6 @@ namespace app {
|
||||
MovingSymmetryState(Editor* editor, ui::MouseMessage* msg,
|
||||
app::gen::SymmetryMode mode,
|
||||
Option<int>& symmetryAxis);
|
||||
virtual ~MovingSymmetryState();
|
||||
|
||||
virtual bool onMouseUp(Editor* editor, ui::MouseMessage* msg) override;
|
||||
virtual bool onMouseMove(Editor* editor, ui::MouseMessage* msg) override;
|
||||
|
@ -1,5 +1,5 @@
|
||||
// Aseprite
|
||||
// Copyright (C) 2001-2015 David Capello
|
||||
// Copyright (C) 2001-2016 David Capello
|
||||
//
|
||||
// This program is distributed under the terms of
|
||||
// the End-User License Agreement for Aseprite.
|
||||
@ -27,10 +27,6 @@ ScrollingState::ScrollingState()
|
||||
{
|
||||
}
|
||||
|
||||
ScrollingState::~ScrollingState()
|
||||
{
|
||||
}
|
||||
|
||||
bool ScrollingState::onMouseDown(Editor* editor, MouseMessage* msg)
|
||||
{
|
||||
m_oldPos = msg->position();
|
||||
|
@ -1,5 +1,5 @@
|
||||
// Aseprite
|
||||
// Copyright (C) 2001-2015 David Capello
|
||||
// Copyright (C) 2001-2016 David Capello
|
||||
//
|
||||
// This program is distributed under the terms of
|
||||
// the End-User License Agreement for Aseprite.
|
||||
@ -16,7 +16,6 @@ namespace app {
|
||||
class ScrollingState : public EditorState {
|
||||
public:
|
||||
ScrollingState();
|
||||
virtual ~ScrollingState();
|
||||
virtual bool isTemporalState() const override { return true; }
|
||||
virtual bool onMouseDown(Editor* editor, ui::MouseMessage* msg) override;
|
||||
virtual bool onMouseUp(Editor* editor, ui::MouseMessage* msg) override;
|
||||
|
@ -1,5 +1,5 @@
|
||||
// Aseprite
|
||||
// Copyright (C) 2001-2015 David Capello
|
||||
// Copyright (C) 2001-2016 David Capello
|
||||
//
|
||||
// This program is distributed under the terms of
|
||||
// the End-User License Agreement for Aseprite.
|
||||
@ -34,10 +34,6 @@ ZoomingState::ZoomingState()
|
||||
{
|
||||
}
|
||||
|
||||
ZoomingState::~ZoomingState()
|
||||
{
|
||||
}
|
||||
|
||||
bool ZoomingState::onMouseDown(Editor* editor, MouseMessage* msg)
|
||||
{
|
||||
m_startPos = msg->position();
|
||||
|
@ -1,5 +1,5 @@
|
||||
// Aseprite
|
||||
// Copyright (C) 2001-2015 David Capello
|
||||
// Copyright (C) 2001-2016 David Capello
|
||||
//
|
||||
// This program is distributed under the terms of
|
||||
// the End-User License Agreement for Aseprite.
|
||||
@ -17,7 +17,6 @@ namespace app {
|
||||
class ZoomingState : public EditorState {
|
||||
public:
|
||||
ZoomingState();
|
||||
virtual ~ZoomingState();
|
||||
virtual bool isTemporalState() const override { return true; }
|
||||
virtual bool onMouseDown(Editor* editor, ui::MouseMessage* msg) override;
|
||||
virtual bool onMouseUp(Editor* editor, ui::MouseMessage* msg) override;
|
||||
|
Loading…
x
Reference in New Issue
Block a user