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:
Erik Eckstein
2016-04-06 14:55:21 -07:00
parent 0f1a89d5dc
commit f2036fc836
2 changed files with 0 additions and 9 deletions

View File

@@ -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,