Skip to content

Commit f2036fc

Browse files
committed
SIL: remove unused function removeFromParent from SILBasicBlock.
This function does not make sense anyway because there is no way to re-insert a removed block into a function again.
1 parent 0f1a89d commit f2036fc

File tree

2 files changed

+0
-9
lines changed

2 files changed

+0
-9
lines changed

include/swift/SIL/SILBasicBlock.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,6 @@ public llvm::ilist_node<SILBasicBlock>, public SILAllocated<SILBasicBlock> {
7474
/// This method unlinks 'self' from the containing SILFunction and deletes it.
7575
void eraseFromParent();
7676

77-
/// This method unlinks 'self' from the containing SILFunction.
78-
void removeFromParent();
79-
8077
/// Returns true if this BB is the entry BB of its parent.
8178
bool isEntry() const;
8279

lib/SIL/SILBasicBlock.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -103,12 +103,6 @@ void SILBasicBlock::eraseFromParent() {
103103
getParent()->getBlocks().erase(this);
104104
}
105105

106-
/// This method unlinks 'self' from the containing SILFunction.
107-
void SILBasicBlock::removeFromParent() {
108-
getParent()->getBlocks().remove(this);
109-
}
110-
111-
112106
/// Replace the ith BB argument with a new one with type Ty (and optional
113107
/// ValueDecl D).
114108
SILArgument *SILBasicBlock::replaceBBArg(unsigned i, SILType Ty,

0 commit comments

Comments
 (0)