Skip to content

Commit

Permalink
Github Issue #198: Removed unnecessary code
Browse files Browse the repository at this point in the history
  • Loading branch information
AngryFender committed Jul 29, 2024
1 parent 5221084 commit 2e1f2f9
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 16 deletions.
15 changes: 0 additions & 15 deletions mktextdocument.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -654,21 +654,6 @@ void MkTextDocument::applyCheckBoxLinkEffect(FormatData *data, QTextBlock &block
}
}

void MkTextDocument::applyCheckBoxLinkEffect(QTextBlock &block, int start, int end, FragmentData::FormatSymbol status)
{
if( status == FragmentData::CHECKED_END || status == FragmentData::UNCHECKED_END ){
const QPair<int,int> checkPos(block.blockNumber(), start);
if(!checkMarkPositions.contains(checkPos)){
checkMarkPositions.append(checkPos);
}
}else if(status == FragmentData::LINK_TITLE){
const std::tuple<int,int,int> linkPos(block.blockNumber(), start, end);
if(!linkPositions.contains(linkPos)){
linkPositions.append(linkPos);
}
}
}

void MkTextDocument::hideSymbols(QTextBlock &block,const QString &symbol)
{
QString textBlock = block.text();
Expand Down
1 change: 0 additions & 1 deletion mktextdocument.h
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,6 @@ public slots:
void resetTextBlockFormat(QTextBlock block);
void applyMkFormat(QTextBlock &block, int start, int end, FragmentData::FormatSymbol status,FormatCollection &formatCollection);
void applyCheckBoxLinkEffect(FormatData *data, QTextBlock &block, QTextCursor &cursor);
void applyCheckBoxLinkEffect(QTextBlock &block, int start, int end, FragmentData::FormatSymbol status);
void hideSymbols(QTextBlock &block,const QString &symbol);
void hideSymbolsAtPos(QString &text, int pos, const QString &symbol);

Expand Down

0 comments on commit 2e1f2f9

Please sign in to comment.