Remove unused feature. NFC.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@224135 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Rafael Espindola
2014-12-12 17:35:34 +00:00
parent 31e081ed96
commit 7291e0706e
3 changed files with 4 additions and 11 deletions

View File

@ -91,16 +91,10 @@ FileOutputBuffer::create(StringRef FilePath, size_t Size,
return std::error_code();
}
std::error_code FileOutputBuffer::commit(int64_t NewSmallerSize) {
std::error_code FileOutputBuffer::commit() {
// Unmap buffer, letting OS flush dirty pages to file on disk.
Region.reset();
// If requested, resize file as part of commit.
if ( NewSmallerSize != -1 ) {
std::error_code EC = sys::fs::resize_file(Twine(TempPath), NewSmallerSize);
if (EC)
return EC;
}
// Rename file to final name.
return sys::fs::rename(Twine(TempPath), Twine(FinalPath));