From 495c3c1b4acfac6878df2a06a9ae1058fd6f03af Mon Sep 17 00:00:00 2001 From: dismine Date: Thu, 23 Jan 2014 12:13:26 +0200 Subject: [PATCH] We don't need anymore this method. --HG-- branch : develop --- src/mainwindow.cpp | 10 ---------- src/mainwindow.h | 10 ---------- 2 files changed, 20 deletions(-) diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 7133c5489..bef6bcc0f 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -312,16 +312,6 @@ void MainWindow::SetToolButton(bool checked, Tool::Tools t, const QString &curso } } -template -void MainWindow::AddToolToDetail(T *tool, const qint64 &id, Tool::Tools typeTool, const qint64 &idDetail) -{ - QHash* tools = doc->getTools(); - Q_ASSERT(tools != 0); - VToolDetail *det = qobject_cast(tools->value(idDetail)); - Q_ASSERT(det != 0); - det->AddTool(tool, id, typeTool); -} - template void MainWindow::ClosedDialog(QSharedPointer &dialog, int result) { diff --git a/src/mainwindow.h b/src/mainwindow.h index 06bd2d20a..fe907af36 100644 --- a/src/mainwindow.h +++ b/src/mainwindow.h @@ -537,16 +537,6 @@ private: */ bool ValidatePattern(const QString &schema, const QString &fileName, QString &errorMsg, qint64 &errorLine, qint64 &errorColumn) const; - template - /** - * @brief AddToolToDetail - * @param tool - * @param id - * @param typeTool - * @param idDetail - */ - void AddToolToDetail(T *tool, const qint64 &id, Tool::Tools typeTool, - const qint64 &idDetail); template /** * @brief ClosedDialog