mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
Get rid of unused deleted property
This commit is contained in:
parent
ed3e2ecb90
commit
74f1789fbb
|
@ -13,7 +13,6 @@ struct UploadedImage {
|
|||
QString imageLink;
|
||||
QString localPath;
|
||||
int64_t timestamp{};
|
||||
bool deleted = false;
|
||||
};
|
||||
} // namespace chatterino
|
||||
|
||||
|
@ -30,10 +29,6 @@ struct Serialize<chatterino::UploadedImage> {
|
|||
chatterino::rj::set(ret, "timestamp", value.timestamp, a);
|
||||
chatterino::rj::set(ret, "localPath", value.localPath, a);
|
||||
chatterino::rj::set(ret, "deletionLink", value.deletionLink, a);
|
||||
if (value.deleted)
|
||||
{
|
||||
chatterino::rj::set(ret, "deleted", value.deleted, a);
|
||||
}
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
@ -86,11 +81,6 @@ struct Deserialize<chatterino::UploadedImage> {
|
|||
PAJLADA_REPORT_ERROR(error);
|
||||
return img;
|
||||
}
|
||||
if (!chatterino::rj::getSafe(value, "deleted", img.deleted))
|
||||
{
|
||||
img.deleted = false;
|
||||
return img;
|
||||
}
|
||||
|
||||
return img;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue