Commit 31d0536e authored by Volker Krause's avatar Volker Krause
Browse files

Remove unused unified hunk body regular expressions

parent 67894519
Pipeline #258856 passed with stage
in 39 seconds
......@@ -93,10 +93,6 @@ ParserBase::ParserBase(const KompareModelList* list, const QStringList& diff) :
m_unifiedDiffHeader1.setPattern(QRegularExpression::anchoredPattern(QStringLiteral("--- ([^\\t]+)(?:\\t([^\\t]+)(?:\\t?)(.*))?\\n")));
m_unifiedDiffHeader2.setPattern(QRegularExpression::anchoredPattern(QStringLiteral("\\+\\+\\+ ([^\\t]+)(?:\\t([^\\t]+)(?:\\t?)(.*))?\\n")));
m_unifiedHunkHeader.setPattern(QRegularExpression::anchoredPattern(QStringLiteral("@@ -([0-9]+)(|,([0-9]+)) \\+([0-9]+)(|,([0-9]+)) @@(?: ?)(.*)\\n")));
m_unifiedHunkBodyAdded.setPattern(QStringLiteral("\\+(.*)"));
m_unifiedHunkBodyRemoved.setPattern(QStringLiteral("-(.*)"));
m_unifiedHunkBodyContext.setPattern(QStringLiteral(" (.*)"));
m_unifiedHunkBodyLine.setPattern(QStringLiteral("([-+ ])(.*)"));
}
ParserBase::~ParserBase()
......
......@@ -9,7 +9,6 @@ SPDX-License-Identifier: GPL-2.0-or-later
#define DIFF2_PARSERBASE_H
#include <QRegularExpression>
#include <QRegExp>
#include <QStringList>
#include "kompare.h"
......@@ -113,11 +112,6 @@ protected:
QRegularExpression m_unifiedHunkHeader;
QRegularExpressionMatch m_unifiedHunkHeaderMatch;
QRegExp m_unifiedHunkBodyAdded;
QRegExp m_unifiedHunkBodyRemoved;
QRegExp m_unifiedHunkBodyContext;
QRegExp m_unifiedHunkBodyLine; // Added for convenience
protected:
const QStringList& m_diffLines;
DiffModel* m_currentModel;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment