mirror of
https://github.com/aseprite/aseprite.git
synced 2025-02-22 15:39:52 +00:00
Remove unused Project-related classes
This commit is contained in:
parent
1c05ea10bb
commit
668b29193a
@ -560,7 +560,6 @@ add_library(app-lib
|
|||||||
modules.cpp
|
modules.cpp
|
||||||
modules/palettes.cpp
|
modules/palettes.cpp
|
||||||
pref/preferences.cpp
|
pref/preferences.cpp
|
||||||
project.cpp
|
|
||||||
recent_files.cpp
|
recent_files.cpp
|
||||||
res/palettes_loader_delegate.cpp
|
res/palettes_loader_delegate.cpp
|
||||||
res/resources_loader.cpp
|
res/resources_loader.cpp
|
||||||
|
@ -1,23 +0,0 @@
|
|||||||
// Aseprite
|
|
||||||
// Copyright (C) 2001-2015 David Capello
|
|
||||||
//
|
|
||||||
// This program is distributed under the terms of
|
|
||||||
// the End-User License Agreement for Aseprite.
|
|
||||||
|
|
||||||
#ifdef HAVE_CONFIG_H
|
|
||||||
#include "config.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "app/project.h"
|
|
||||||
|
|
||||||
namespace app {
|
|
||||||
|
|
||||||
Project::Project()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
Project::~Project()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
} // namespace app
|
|
@ -1,28 +0,0 @@
|
|||||||
// Aseprite
|
|
||||||
// Copyright (C) 2001-2016 David Capello
|
|
||||||
//
|
|
||||||
// This program is distributed under the terms of
|
|
||||||
// the End-User License Agreement for Aseprite.
|
|
||||||
|
|
||||||
#ifndef APP_PROJECT_H_INCLUDED
|
|
||||||
#define APP_PROJECT_H_INCLUDED
|
|
||||||
#pragma once
|
|
||||||
|
|
||||||
#include "app/project_observer.h"
|
|
||||||
#include "base/disable_copying.h"
|
|
||||||
#include "obs/observable.h"
|
|
||||||
|
|
||||||
namespace app {
|
|
||||||
|
|
||||||
class Project : public obs::observable<ProjectObserver> {
|
|
||||||
public:
|
|
||||||
Project();
|
|
||||||
~Project();
|
|
||||||
|
|
||||||
private:
|
|
||||||
DISABLE_COPYING(Project);
|
|
||||||
};
|
|
||||||
|
|
||||||
} // namespace app
|
|
||||||
|
|
||||||
#endif
|
|
@ -1,28 +0,0 @@
|
|||||||
// Aseprite
|
|
||||||
// Copyright (C) 2001-2015 David Capello
|
|
||||||
//
|
|
||||||
// This program is distributed under the terms of
|
|
||||||
// the End-User License Agreement for Aseprite.
|
|
||||||
|
|
||||||
#ifndef APP_PROJECT_EVENT_H_INCLUDED
|
|
||||||
#define APP_PROJECT_EVENT_H_INCLUDED
|
|
||||||
#pragma once
|
|
||||||
|
|
||||||
namespace app {
|
|
||||||
class Doc;
|
|
||||||
|
|
||||||
class ProjectEvent {
|
|
||||||
public:
|
|
||||||
ProjectEvent(Doc* document)
|
|
||||||
: m_document(document) {
|
|
||||||
}
|
|
||||||
|
|
||||||
Doc* document() const { return m_document; }
|
|
||||||
|
|
||||||
private:
|
|
||||||
Doc* m_document;
|
|
||||||
};
|
|
||||||
|
|
||||||
} // namespace app
|
|
||||||
|
|
||||||
#endif
|
|
@ -1,25 +0,0 @@
|
|||||||
// Aseprite
|
|
||||||
// Copyright (C) 2001-2015 David Capello
|
|
||||||
//
|
|
||||||
// This program is distributed under the terms of
|
|
||||||
// the End-User License Agreement for Aseprite.
|
|
||||||
|
|
||||||
#ifndef APP_PROJECT_OBSERVER_H_INCLUDED
|
|
||||||
#define APP_PROJECT_OBSERVER_H_INCLUDED
|
|
||||||
#pragma once
|
|
||||||
|
|
||||||
#include "app/project_event.h"
|
|
||||||
|
|
||||||
namespace app {
|
|
||||||
|
|
||||||
class ProjectObserver {
|
|
||||||
public:
|
|
||||||
virtual ~ProjectObserver() { }
|
|
||||||
virtual void dispose() = 0;
|
|
||||||
virtual void onAddDocument(ProjectEvent& ev) = 0;
|
|
||||||
virtual void onRemoveDocument(ProjectEvent& ev) = 0;
|
|
||||||
};
|
|
||||||
|
|
||||||
} // namespace app
|
|
||||||
|
|
||||||
#endif
|
|
Loading…
x
Reference in New Issue
Block a user