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