Remove PhotoSizeSource.AsKey.

GitOrigin-RevId: c67a766c4496524393a59ed23801f6a60e5338d0
This commit is contained in:
levlam 2019-06-13 02:05:00 +03:00
parent 30e96aa8c8
commit e59c88b22d
3 changed files with 0 additions and 70 deletions

View File

@ -64,16 +64,6 @@ struct OfflineInputStickerSet {
void store(StorerT &storer) const;
template <class ParserT>
void parse(ParserT &parser);
struct AsKey {
const OfflineInputStickerSet &key;
template <class StorerT>
void store(StorerT &storer) const;
};
AsKey as_key() const {
return AsKey{*this};
}
};
struct OfflineInputPeer {
@ -91,16 +81,6 @@ struct OfflineInputPeer {
void store(StorerT &storer) const;
template <class ParserT>
void parse(ParserT &parser);
struct AsKey {
const OfflineInputPeer &key;
template <class StorerT>
void store(StorerT &storer) const;
};
AsKey as_key() const {
return AsKey{*this};
}
};
struct PhotoSizeSource {
@ -167,16 +147,6 @@ struct PhotoSizeSource {
void store(StorerT &storer) const;
template <class ParserT>
void parse(ParserT &parser);
struct AsKey {
const PhotoSizeSource &key;
template <class StorerT>
void store(StorerT &storer) const;
};
AsKey as_key() const {
return AsKey{*this};
}
};
struct Photo {

View File

@ -31,12 +31,6 @@ void OfflineInputStickerSet::parse(ParserT &parser) {
parse(sticker_set_access_hash, parser);
}
template <class StorerT>
void OfflineInputStickerSet::AsKey::store(StorerT &storer) const {
using td::store;
store(key.sticker_set_id, storer);
}
template <class StorerT>
void OfflineInputPeer::store(StorerT &storer) const {
using td::store;
@ -59,12 +53,6 @@ void OfflineInputPeer::parse(ParserT &parser) {
}
}
template <class StorerT>
void OfflineInputPeer::AsKey::store(StorerT &storer) const {
using td::store;
store(key.dialog_id, storer);
}
template <class StorerT>
void PhotoSizeSource::store(StorerT &storer) const {
using td::store;
@ -125,33 +113,6 @@ void PhotoSizeSource::parse(ParserT &parser) {
}
}
template <class StorerT>
void PhotoSizeSource::AsKey::store(StorerT &storer) const {
using td::store;
store(key.file_type, storer);
store(key.type, storer);
switch (key.type) {
case Type::DialogPhoto: {
auto &dialog_photo = this->key.dialog_photo();
store(dialog_photo.input_peer.as_key(), storer);
store(dialog_photo.is_big, storer);
break;
}
case Type::StickerSetThumbnail: {
auto &sticker_set_thumbnail = this->key.sticker_set_thumbnail();
store(sticker_set_thumbnail.input_sticker_set.as_key(), storer);
break;
}
case Type::Thumbnail: {
auto &thumbnail = this->key.thumbnail();
store(thumbnail.thumbnail_type, storer);
break;
}
case Type::Empty:
break;
}
}
template <class StorerT>
void store(Dimensions dimensions, StorerT &storer) {
store(static_cast<uint32>((static_cast<uint32>(dimensions.width) << 16) | dimensions.height), storer);

View File

@ -69,7 +69,6 @@ void PhotoRemoteFileLocation::AsKey::store(StorerT &storer) const {
store(key.id_, storer);
store(key.volume_id_, storer);
store(key.local_id_, storer);
store(key.source_.as_key(), storer);
}
template <class StorerT>