diff options
author | David Schulz <david.schulz@qt.io> | 2023-07-04 10:56:11 +0200 |
---|---|---|
committer | David Schulz <david.schulz@qt.io> | 2023-07-04 11:39:36 +0000 |
commit | 13ccc24a353262dd8bd9838cb70773af65d3d7b9 (patch) | |
tree | 642709f0467aa01e334e7556624c1637fa94688d /src/libs/utils/textutils.h | |
parent | 4743724d4cf696848635439196cdaa0e0b5572b5 (diff) |
Utils: remove now unused Utils::Text::Replacement
They have been completely replaced by Utils::ChangeSet.
Change-Id: I857816c1b2730699ba481da2e271dde358f394f3
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Diffstat (limited to 'src/libs/utils/textutils.h')
-rw-r--r-- | src/libs/utils/textutils.h | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/src/libs/utils/textutils.h b/src/libs/utils/textutils.h index 80e4150c1d..36bd042e44 100644 --- a/src/libs/utils/textutils.h +++ b/src/libs/utils/textutils.h @@ -49,25 +49,6 @@ public: bool operator!=(const Range &other) const { return !(operator==(other)); } }; -struct Replacement -{ - Replacement() = default; - Replacement(int offset, int length, const QString &text) - : offset(offset) - , length(length) - , text(text) - {} - - int offset = -1; - int length = -1; - QString text; - - bool isValid() const { return offset >= 0 && length >= 0; } -}; -using Replacements = std::vector<Replacement>; - -QTCREATOR_UTILS_EXPORT void applyReplacements(QTextDocument *doc, const Replacements &replacements); - // line is 1-based, column is 0-based QTCREATOR_UTILS_EXPORT bool convertPosition(const QTextDocument *document, int pos, |