mirror of
https://github.com/aseprite/aseprite.git
synced 2025-02-24 12:41:08 +00:00
Delete unused code in FileOp and FileFormat
This commit is contained in:
parent
737a60c5ac
commit
f5bce17e7b
@ -1,5 +1,5 @@
|
|||||||
// Aseprite
|
// Aseprite
|
||||||
// Copyright (C) 2018-2021 Igara Studio S.A.
|
// Copyright (C) 2018-2022 Igara Studio S.A.
|
||||||
// Copyright (C) 2001-2018 David Capello
|
// Copyright (C) 2001-2018 David Capello
|
||||||
//
|
//
|
||||||
// This program is distributed under the terms of
|
// This program is distributed under the terms of
|
||||||
@ -884,9 +884,6 @@ void FileOp::stop()
|
|||||||
|
|
||||||
FileOp::~FileOp()
|
FileOp::~FileOp()
|
||||||
{
|
{
|
||||||
if (m_format)
|
|
||||||
m_format->destroyData(this);
|
|
||||||
|
|
||||||
delete m_seq.palette;
|
delete m_seq.palette;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
// Aseprite
|
// Aseprite
|
||||||
|
// Copyright (C) 2022 Igara Studio S.A.
|
||||||
// Copyright (C) 2001-2018 David Capello
|
// Copyright (C) 2001-2018 David Capello
|
||||||
//
|
//
|
||||||
// This program is distributed under the terms of
|
// This program is distributed under the terms of
|
||||||
@ -57,9 +58,4 @@ bool FileFormat::postLoad(FileOp* fop)
|
|||||||
return onPostLoad(fop);
|
return onPostLoad(fop);
|
||||||
}
|
}
|
||||||
|
|
||||||
void FileFormat::destroyData(FileOp* fop)
|
|
||||||
{
|
|
||||||
onDestroyData(fop);
|
|
||||||
}
|
|
||||||
|
|
||||||
} // namespace app
|
} // namespace app
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
// Aseprite
|
// Aseprite
|
||||||
// Copyright (C) 2019 Igara Studio S.A.
|
// Copyright (C) 2019-2022 Igara Studio S.A.
|
||||||
// Copyright (C) 2001-2018 David Capello
|
// Copyright (C) 2001-2018 David Capello
|
||||||
//
|
//
|
||||||
// This program is distributed under the terms of
|
// This program is distributed under the terms of
|
||||||
@ -61,9 +61,6 @@ namespace app {
|
|||||||
// Returns false cancelled the operation.
|
// Returns false cancelled the operation.
|
||||||
bool postLoad(FileOp* fop);
|
bool postLoad(FileOp* fop);
|
||||||
|
|
||||||
// Destroys the custom data stored in "fop->format_data" field.
|
|
||||||
void destroyData(FileOp* fop);
|
|
||||||
|
|
||||||
// Returns extra options for this format. It can return != NULL
|
// Returns extra options for this format. It can return != NULL
|
||||||
// only if flags() returns FILE_SUPPORT_GET_FORMAT_OPTIONS.
|
// only if flags() returns FILE_SUPPORT_GET_FORMAT_OPTIONS.
|
||||||
FormatOptionsPtr askUserForFormatOptions(FileOp* fop) {
|
FormatOptionsPtr askUserForFormatOptions(FileOp* fop) {
|
||||||
@ -86,7 +83,6 @@ namespace app {
|
|||||||
#ifdef ENABLE_SAVE
|
#ifdef ENABLE_SAVE
|
||||||
virtual bool onSave(FileOp* fop) = 0;
|
virtual bool onSave(FileOp* fop) = 0;
|
||||||
#endif
|
#endif
|
||||||
virtual void onDestroyData(FileOp* fop) { }
|
|
||||||
|
|
||||||
virtual FormatOptionsPtr onAskUserForFormatOptions(FileOp* fop) {
|
virtual FormatOptionsPtr onAskUserForFormatOptions(FileOp* fop) {
|
||||||
return FormatOptionsPtr(nullptr);
|
return FormatOptionsPtr(nullptr);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user