cleaned up some no longer used functions

This commit is contained in:
itsmattkc
2021-11-19 16:46:39 -08:00
parent 40783bcc6d
commit a391e63252
8 changed files with 65 additions and 237 deletions
+2 -23
View File
@@ -63,7 +63,7 @@ public:
void SelectAll();
void DeselectAll();
void Select(QVector<Node *> nodes, bool center_view_on_item);
void Select(const QVector<Node *> &nodes, bool center_view_on_item);
void CopySelected(bool cut);
void Paste();
@@ -120,8 +120,6 @@ protected:
virtual void PasteNodesFromClipboardInternal(QXmlStreamReader *reader, XMLNodeData &xml_node_data, void* userdata) override;
private:
void AttachNodesToCursor(const QVector<Node *> &nodes);
void AttachItemsToCursor(const QVector<NodeViewItem *> &items);
void DetachItemsFromCursor();
@@ -149,25 +147,6 @@ private:
bool IsItemAttachedToCursor(NodeViewItem *item) const;
class NodeViewAttachNodesToCursor : public UndoCommand
{
public:
NodeViewAttachNodesToCursor(NodeView* view, const QVector<Node*>& nodes);
virtual Project * GetRelevantProject() const override;
protected:
virtual void redo() override;
virtual void undo() override;
private:
NodeView* view_;
QVector<Node*> nodes_;
};
NodeViewMiniMap *minimap_;
struct AttachedItem {
@@ -198,7 +177,7 @@ private:
QVector<Node*> last_set_filter_nodes_;
QMap<Node*, QPointF> context_offsets_;
QMap<NodeViewItem*, QPointF> dragging_nodes_;
QMap<NodeViewItem*, QPointF> dragging_items_;
double scale_;