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