[cfe-commits] r43906 - /cfe/trunk/Rewrite/Rewriter.cpp
Chris Lattner
sabre at nondot.org
Thu Nov 8 12:53:07 PST 2007
Author: lattner
Date: Thu Nov 8 14:53:07 2007
New Revision: 43906
URL: http://llvm.org/viewvc/llvm-project?rev=43906&view=rev
Log:
remove some temporary code.
Modified:
cfe/trunk/Rewrite/Rewriter.cpp
Modified: cfe/trunk/Rewrite/Rewriter.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/Rewrite/Rewriter.cpp?rev=43906&r1=43905&r2=43906&view=diff
==============================================================================
--- cfe/trunk/Rewrite/Rewriter.cpp (original)
+++ cfe/trunk/Rewrite/Rewriter.cpp Thu Nov 8 14:53:07 2007
@@ -121,13 +121,6 @@
unsigned RealOffset = getMappedOffset(OrigOffset, true);
assert(RealOffset+OrigLength <= Buffer.size() && "Invalid location");
-#if 0
- Buffer.erase(Buffer.begin()+RealOffset, Buffer.begin()+RealOffset+OrigLength);
- Buffer.insert(Buffer.begin()+RealOffset, NewStr, NewStr+NewLength);
- AddDelta(OrigOffset, NewLength-OrigLength);
- return;
-#endif
-
// Overwrite the common piece.
unsigned CommonLength = std::min(OrigLength, NewLength);
std::copy(NewStr, NewStr+CommonLength, Buffer.getAtOffset(RealOffset));
More information about the cfe-commits
mailing list