Skip to content

Commit f6abf7a

Browse files
committed
Remove some debug logs.
1 parent a8f9cf4 commit f6abf7a

1 file changed

Lines changed: 0 additions & 22 deletions

File tree

Telegram/SourceFiles/history/view/history_view_message.cpp

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -5129,18 +5129,12 @@ int Message::resizeContentGetHeight(int newWidth) {
51295129
appearing->shownLines = 1;
51305130
appearing->revealedLineWidth = 0;
51315131
appearing->shownWidth = 0;
5132-
LOG(("appearing start"));
51335132
startTextAppearingWidthAnimation();
51345133
} else if (!appearing->heightStarted
51355134
&& !appearing->widthAnimation.animating()) {
5136-
LOG(("appearing continue"));
51375135
startTextAppearingHeightAnimation();
51385136
}
51395137
}
5140-
LOG(("appearing: %1 lines, shown %2, height %3")
5141-
.arg(appearing->lines.size())
5142-
.arg(appearing->shownLines)
5143-
.arg(appearing->shownHeight));
51445138
newHeight += appearing->shownHeight;
51455139
} else {
51465140
newHeight += fullTextHeight;
@@ -5248,9 +5242,6 @@ int Message::resizeContentGetHeight(int newWidth) {
52485242
}
52495243

52505244
newHeight += marginTop() + marginBottom();
5251-
if (const auto appearing = Get<TextAppearing>()) {
5252-
LOG(("appearing result: %1").arg(newHeight));
5253-
}
52545245
return newHeight;
52555246
}
52565247

@@ -5276,9 +5267,6 @@ void Message::startTextAppearingWidthAnimation() {
52765267
kFullLineAppearDuration * lineWidth / st::msgMaxWidth,
52775268
crl::time(10));
52785269
appearing->widthDuration = duration;
5279-
LOG(("appearance - starting width: %1, duration: %2")
5280-
.arg(lineWidth)
5281-
.arg(duration));
52825270
appearing->widthAnimation.start(
52835271
[=] { textAppearingTick(); },
52845272
0.,
@@ -5297,10 +5285,6 @@ void Message::startTextAppearingHeightAnimation() {
52975285
appearing->heightStarted = true;
52985286
const auto oldHeight = appearing->shownHeight;
52995287
const auto newTargetHeight = appearing->lines[appearing->shownLines].top;
5300-
LOG(("appearance - starting height: %1, target: %2, duration: %3")
5301-
.arg(oldHeight)
5302-
.arg(newTargetHeight)
5303-
.arg(kLineHeightAppearDuration));
53045288
appearing->heightAnimation.start(
53055289
[=] { textAppearingHeightTick(); },
53065290
double(oldHeight),
@@ -5326,11 +5310,6 @@ void Message::textAppearingTick() {
53265310
appearing->shownWidth,
53275311
appearing->revealedLineWidth);
53285312

5329-
LOG(("appearance width progress - line %1, progress: %2, revealed width: %3")
5330-
.arg(lineIndex)
5331-
.arg(progress)
5332-
.arg(appearing->revealedLineWidth));
5333-
53345313
const auto hasMoreLines =
53355314
(appearing->shownLines < int(appearing->lines.size()));
53365315
const auto remaining = crl::time(
@@ -5378,7 +5357,6 @@ void Message::tryAdvanceTextAppearing() {
53785357
|| appearing->heightAnimation.animating()) {
53795358
return;
53805359
}
5381-
LOG(("appearance - line %1 fully appeared").arg(appearing->shownLines - 1));
53825360
if (appearing->shownLines < int(appearing->lines.size())) {
53835361
appearing->shownLines++;
53845362
startTextAppearingWidthAnimation();

0 commit comments

Comments
 (0)