mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 06:26:18 +00:00
Remove legacy image-related code.
This commit is contained in:
@@ -297,21 +297,9 @@ void Inner::hideFinished() {
|
||||
}
|
||||
|
||||
void Inner::clearHeavyData() {
|
||||
const auto unload = [](const auto &item) {
|
||||
if (const auto document = item->getDocument()) {
|
||||
document->unload();
|
||||
}
|
||||
if (const auto photo = item->getPhoto()) {
|
||||
photo->unload();
|
||||
}
|
||||
if (const auto result = item->getResult()) {
|
||||
result->unload();
|
||||
}
|
||||
item->unloadHeavyPart();
|
||||
};
|
||||
clearInlineRows(false);
|
||||
for (const auto &[result, layout] : _inlineLayouts) {
|
||||
unload(layout);
|
||||
layout->unloadHeavyPart();
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user