Old fields removed

This commit is contained in:
no_reply@jetbrains.com
2005-01-22 02:22:51 +03:00
parent de3f768d94
commit 8f003b3453
@@ -217,7 +217,7 @@ public class PsiToDocumentSynchronizer extends PsiTreeChangeAdapter {
public void commitTransaction(Document document){
final DocumentChangeTransaction documentChangeTransaction = myTransactionsMap.get(document);
if(documentChangeTransaction == null) return;
if(documentChangeTransaction.getTransactionRange() == null) return; // Nothing to do
if(documentChangeTransaction.getAffectedFragments().size() == 0) return; // Nothing to do
try{
final PsiElement changeScope = documentChangeTransaction.getChangeScope();
final PsiTreeChangeEventImpl fakeEvent = new PsiTreeChangeEventImpl(changeScope.getManager());
@@ -276,8 +276,6 @@ public class PsiToDocumentSynchronizer extends PsiTreeChangeAdapter {
public class DocumentChangeTransaction{
List<Pair<TextRange,StringBuffer>> myAffectedFragments = new ArrayList<Pair<TextRange, StringBuffer>>();
private TextRange myTransactionRange = null;
private final StringBuffer myTransactionBuffer = new StringBuffer();
private final Document myDocument;
private final PsiElement myChangeScope;
@@ -286,10 +284,6 @@ public class PsiToDocumentSynchronizer extends PsiTreeChangeAdapter {
myChangeScope = scope;
}
public TextRange getTransactionRange() {
return myTransactionRange;
}
public List<Pair<TextRange, StringBuffer>> getAffectedFragments() {
return myAffectedFragments;
}
@@ -298,10 +292,6 @@ public class PsiToDocumentSynchronizer extends PsiTreeChangeAdapter {
return myChangeScope;
}
public StringBuffer getTransactionBuffer() {
return myTransactionBuffer;
}
public void replace(int start, int length, String str){
final int startInFragment;
final StringBuffer fragmentReplaceText;