From f119f3fbda8b7ab8b8f25acac228d3e9445e590e Mon Sep 17 00:00:00 2001 From: David Schulz Date: Mon, 6 Jan 2025 11:29:58 +0100 Subject: [PATCH] CompilerExplorer: remove unused function Change-Id: I5f32f7b9f9f56a10c8c3e02ef2d4495a20d82e33 Reviewed-by: Marcus Tillmanns --- src/plugins/compilerexplorer/compilerexplorereditor.cpp | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/plugins/compilerexplorer/compilerexplorereditor.cpp b/src/plugins/compilerexplorer/compilerexplorereditor.cpp index 43086b9061b..c623f527d27 100644 --- a/src/plugins/compilerexplorer/compilerexplorereditor.cpp +++ b/src/plugins/compilerexplorer/compilerexplorereditor.cpp @@ -185,7 +185,6 @@ class SourceEditorWidget : public QWidget public: SourceEditorWidget(const std::shared_ptr &settings, QUndoStack *undoStack); - QString sourceCode(); SourceSettings *sourceSettings() { return m_sourceSettings.get(); } void focusInEvent(QFocusEvent *) override { emit gotFocus(); } @@ -522,13 +521,6 @@ SourceEditorWidget::SourceEditorWidget(const std::shared_ptr &se setFocusProxy(m_codeEditor); } -QString SourceEditorWidget::sourceCode() -{ - if (m_codeEditor && m_codeEditor->textDocument()) - return QString::fromUtf8(m_codeEditor->textDocument()->contents()); - return {}; -} - void SourceEditorWidget::markSourceLocation( const std::optional &assemblyLine) {