src/lddocument.h

changeset 1318
568fcfc6da71
parent 1308
dcc8c02530c2
child 1326
69a90bd2dba2
--- a/src/lddocument.h	Sat Mar 24 10:51:20 2018 +0200
+++ b/src/lddocument.h	Sat Mar 24 11:05:40 2018 +0200
@@ -18,15 +18,12 @@
 
 #pragma once
 #include <QObject>
-#include "main.h"
-#include "linetypes/modelobject.h"
-#include "editHistory.h"
-#include "glShared.h"
 #include "model.h"
 #include "hierarchyelement.h"
 
 struct LDGLData;
 class DocumentManager;
+class EditHistory;
 
 struct LDHeader
 {
@@ -146,12 +143,6 @@
 	QSet<Vertex> m_vertices;
 	DocumentManager* m_manager;
 
-	template<typename T, typename... Args>
-	void addToHistory(Args&&... args)
-	{
-		m_history->add<T>(args...);
-	}
-
 private slots:
 	void objectChanged(const LDObjectState &before, const LDObjectState &after);
 	void handleNewObject(const QModelIndex& index);

mercurial