diff options
Diffstat (limited to 'src/plugins/texteditor/snippets/snippet.cpp')
-rw-r--r-- | src/plugins/texteditor/snippets/snippet.cpp | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/src/plugins/texteditor/snippets/snippet.cpp b/src/plugins/texteditor/snippets/snippet.cpp index fbe00be39d..38b481b16f 100644 --- a/src/plugins/texteditor/snippets/snippet.cpp +++ b/src/plugins/texteditor/snippets/snippet.cpp @@ -70,22 +70,6 @@ public: } }; -QString SnippetParseError::htmlMessage() const -{ - QString message = errorMessage; - if (pos < 0 || pos > 50) - return message; - QString detail = text.left(50); - if (detail != text) - detail.append("..."); - detail.replace(QChar::Space, " "); - message.append("<br><code>" + detail + "<br>"); - for (int i = 0; i < pos; ++i) - message.append(" "); - message.append("^</code>"); - return message; -} - // -------------------------------------------------------------------- // Snippet: // -------------------------------------------------------------------- |