Get rid of unused deleted property

This commit is contained in:
Mm2PL 2023-12-02 01:25:07 +01:00
parent ed3e2ecb90
commit 74f1789fbb
No known key found for this signature in database
GPG key ID: 94AC9B80EFA15ED9

View file

@ -13,7 +13,6 @@ struct UploadedImage {
QString imageLink; QString imageLink;
QString localPath; QString localPath;
int64_t timestamp{}; int64_t timestamp{};
bool deleted = false;
}; };
} // namespace chatterino } // namespace chatterino
@ -30,10 +29,6 @@ struct Serialize<chatterino::UploadedImage> {
chatterino::rj::set(ret, "timestamp", value.timestamp, a); chatterino::rj::set(ret, "timestamp", value.timestamp, a);
chatterino::rj::set(ret, "localPath", value.localPath, a); chatterino::rj::set(ret, "localPath", value.localPath, a);
chatterino::rj::set(ret, "deletionLink", value.deletionLink, a); chatterino::rj::set(ret, "deletionLink", value.deletionLink, a);
if (value.deleted)
{
chatterino::rj::set(ret, "deleted", value.deleted, a);
}
return ret; return ret;
} }
@ -86,11 +81,6 @@ struct Deserialize<chatterino::UploadedImage> {
PAJLADA_REPORT_ERROR(error); PAJLADA_REPORT_ERROR(error);
return img; return img;
} }
if (!chatterino::rj::getSafe(value, "deleted", img.deleted))
{
img.deleted = false;
return img;
}
return img; return img;
} }