Cleanup: Remove unused node clipboard type handling

This commit is contained in:
Hans Goudey 2022-11-16 18:01:34 -06:00
parent 845a3573f5
commit c481549870
3 changed files with 0 additions and 14 deletions

View File

@ -861,7 +861,6 @@ void nodeSocketDeclarationsUpdate(struct bNode *node);
/**
* Node Clipboard.
*/
void BKE_node_clipboard_init(const struct bNodeTree *ntree);
void BKE_node_clipboard_clear(void);
void BKE_node_clipboard_free(void);
/**
@ -872,7 +871,6 @@ void BKE_node_clipboard_add_node(struct bNode *node);
void BKE_node_clipboard_add_link(struct bNodeLink *link);
const struct ListBase *BKE_node_clipboard_get_nodes(void);
const struct ListBase *BKE_node_clipboard_get_links(void);
int BKE_node_clipboard_get_type(void);
/**
* Node Instance Hash.

View File

@ -3779,16 +3779,10 @@ struct bNodeClipboard {
#endif
ListBase links;
int type;
};
static bNodeClipboard node_clipboard = {{nullptr}};
void BKE_node_clipboard_init(const struct bNodeTree *ntree)
{
node_clipboard.type = ntree->type;
}
void BKE_node_clipboard_clear()
{
LISTBASE_FOREACH_MUTABLE (bNodeLink *, link, &node_clipboard.links) {
@ -3894,11 +3888,6 @@ const ListBase *BKE_node_clipboard_get_links()
return &node_clipboard.links;
}
int BKE_node_clipboard_get_type()
{
return node_clipboard.type;
}
void BKE_node_clipboard_free()
{
BKE_node_clipboard_validate();

View File

@ -2242,7 +2242,6 @@ static int node_clipboard_copy_exec(bContext *C, wmOperator * /*op*/)
/* clear current clipboard */
BKE_node_clipboard_clear();
BKE_node_clipboard_init(ntree);
Map<const bNode *, bNode *> node_map;
Map<const bNodeSocket *, bNodeSocket *> socket_map;