codetools: clean up

git-svn-id: trunk@28499 -
This commit is contained in:
mattias 2010-11-26 12:25:50 +00:00
parent 94948dde5e
commit 9eb142f295

View File

@ -1087,7 +1087,6 @@ begin
if AtomIsChar(';') then begin
// last unit in uses section -> delete whole uses section
StartPos:=FindLineEndOrCodeInFrontOfPosition(UsesNode.StartPos,true,true);
debugln(['TStandardCodeTool.RemoveUnitFromUsesSection AAA1 "',dbgstr(copy(Src,StartPos,UsesNode.EndPos-StartPos)),'"']);
if not SourceChangeCache.Replace(gtNone,gtNone,
StartPos,UsesNode.EndPos,'') then exit;
end else begin