Removed unused Ui::Text::Parser::createSkipBlock method.

This commit is contained in:
23rd 2022-08-15 21:34:14 +03:00
parent 2f5d5e0e79
commit 6ce4bedc28

View file

@ -240,7 +240,7 @@ private:
void trimSourceRange(); void trimSourceRange();
void blockCreated(); void blockCreated();
void createBlock(int32 skipBack = 0); void createBlock(int32 skipBack = 0);
void createSkipBlock(int32 w, int32 h); // void createSkipBlock(int32 w, int32 h);
void createNewlineBlock(); void createNewlineBlock();
// Returns true if at least one entity was parsed in the current position. // Returns true if at least one entity was parsed in the current position.
@ -434,12 +434,13 @@ void Parser::createBlock(int32 skipBack) {
} }
} }
void Parser::createSkipBlock(int32 w, int32 h) { // Unused.
createBlock(); // void Parser::createSkipBlock(int32 w, int32 h) {
_t->_text.push_back('_'); // createBlock();
_t->_blocks.push_back(Block::Skip(_t->_st->font, _t->_text, _blockStart++, w, h, _monoIndex ? _monoIndex : _lnkIndex, _spoilerIndex)); // _t->_text.push_back('_');
blockCreated(); // _t->_blocks.push_back(Block::Skip(_t->_st->font, _t->_text, _blockStart++, w, h, _monoIndex ? _monoIndex : _lnkIndex, _spoilerIndex));
} // blockCreated();
// }
void Parser::createNewlineBlock() { void Parser::createNewlineBlock() {
createBlock(); createBlock();