Skip to content

Commit a11fceb

Browse files
committed
[gardening] Remove unneeded method addNodeToList on ilist_traits<SILBasicBlock>.
addNodeToList only needs to be implemented to override the default callback behavior of ilist_trait_defaults<SILBasicBlock>. This implmentation in ilist_traits<SILBasicBlock> is exactly the same as the default callback so is unnecessary.
1 parent 320969a commit a11fceb

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

include/swift/SIL/SILBasicBlock.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -425,11 +425,8 @@ struct ilist_traits<::swift::SILBasicBlock>
425425
public:
426426
static void deleteNode(SILBasicBlock *BB) { BB->~SILBasicBlock(); }
427427

428-
void addNodeToList(SILBasicBlock *BB) {}
429-
430428
void transferNodesFromList(ilist_traits<SILBasicBlock> &SrcTraits,
431429
block_iterator First, block_iterator Last);
432-
433430
private:
434431
static void createNode(const SILBasicBlock &);
435432
};

0 commit comments

Comments
 (0)