2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Move some modules to lib_mtproto.

This commit is contained in:
John Preston
2019-11-18 12:28:14 +03:00
parent 782025a0a6
commit cfe12f773f
53 changed files with 143 additions and 148 deletions

View File

@@ -82,8 +82,6 @@ inline QByteArray str_const_toByteArray(const str_const &str) {
return QByteArray::fromRawData(str.c_str(), str.size());
}
int GetNextRequestId();
inline void mylocaltime(struct tm * _Tm, const time_t * _Time) {
#ifdef Q_OS_WIN
localtime_s(_Tm, _Time);
@@ -161,8 +159,6 @@ T rand_value() {
return result;
}
static const QRegularExpression::PatternOptions reMultiline(QRegularExpression::DotMatchesEverythingOption | QRegularExpression::MultilineOption);
template <typename T>
inline T snap(const T &v, const T &_min, const T &_max) {
return (v < _min) ? _min : ((v > _max) ? _max : v);