mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
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.
This commit is contained in:
@@ -103,12 +103,6 @@ void SILBasicBlock::eraseFromParent() {
|
||||
getParent()->getBlocks().erase(this);
|
||||
}
|
||||
|
||||
/// This method unlinks 'self' from the containing SILFunction.
|
||||
void SILBasicBlock::removeFromParent() {
|
||||
getParent()->getBlocks().remove(this);
|
||||
}
|
||||
|
||||
|
||||
/// Replace the ith BB argument with a new one with type Ty (and optional
|
||||
/// ValueDecl D).
|
||||
SILArgument *SILBasicBlock::replaceBBArg(unsigned i, SILType Ty,
|
||||
|
||||
Reference in New Issue
Block a user