2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-09-05 00:55:12 +00:00

Remove legacy #feed code.

This commit is contained in:
John Preston
2021-02-25 17:03:51 +04:00
parent df70fd3081
commit 8142acc709
71 changed files with 16 additions and 4139 deletions

View File

@@ -29,9 +29,6 @@ namespace Info {
Key::Key(not_null<PeerData*> peer) : _value(peer) {
}
//Key::Key(not_null<Data::Feed*> feed) : _value(feed) { // #feed
//}
Key::Key(Settings::Tag settings) : _value(settings) {
}
@@ -46,13 +43,6 @@ PeerData *Key::peer() const {
return nullptr;
}
//Data::Feed *Key::feed() const { // #feed
// if (const auto feed = std::get_if<not_null<Data::Feed*>>(&_value)) {
// return *feed;
// }
// return nullptr;
//}
UserData *Key::settingsSelf() const {
if (const auto tag = std::get_if<Settings::Tag>(&_value)) {
return tag->self;
@@ -191,7 +181,6 @@ bool Controller::validateMementoPeer(
not_null<ContentMemento*> memento) const {
return memento->peer() == peer()
&& memento->migratedPeerId() == migratedPeerId()
//&& memento->feed() == feed() // #feed
&& memento->settingsSelf() == settingsSelf();
}
@@ -212,10 +201,7 @@ void Controller::updateSearchControllers(
&& SharedMediaAllowSearch(mediaType);
auto hasCommonGroupsSearch
= (type == Type::CommonGroups);
auto hasMembersSearch
= (type == Type::Members
|| type == Type::Profile/* // #feed
|| type == Type::Channels*/);
auto hasMembersSearch = (type == Type::Members || type == Type::Profile);
auto searchQuery = memento->searchFieldQuery();
if (isMedia) {
_searchController