diff: remove unused methods

This commit is contained in:
Aleksey Pivovarov
2015-05-20 15:40:00 +03:00
parent 5dbcd913ca
commit f68631cd1d
3 changed files with 0 additions and 29 deletions
@@ -82,14 +82,6 @@ public class ChangedBlock {
return myLine2;
}
public boolean hasInsertion() {
return myStartOffset2 != myEndOffset2;
}
public boolean hasDeletion() {
return myStartOffset1 != myEndOffset1;
}
@NotNull
public LineFragment getLineFragment() {
return myLineFragment;
@@ -85,14 +85,6 @@ public class FoldingModelSupport {
// Init
//
@Deprecated
protected void install(@Nullable final Iterator<int[]> changedLines,
@NotNull final UserDataHolder context,
final boolean defaultExpanded,
final int range) {
install(changedLines, context, new Settings(range, defaultExpanded));
}
/*
* Iterator returns ranges of changed lines: start1, end1, start2, end2, ...
*/
@@ -498,11 +490,6 @@ public class FoldingModelSupport {
}
}
@Deprecated
public void updateContext(@NotNull UserDataHolder context, boolean defaultState) {
updateContext(context, new Settings(0, defaultState));
}
public void updateContext(@NotNull UserDataHolder context, @NotNull final Settings settings) {
if (myFoldings.isEmpty()) return; // do not rewrite cache by initial state
context.putUserData(CACHE_KEY, getFoldingCache(settings));
@@ -47,14 +47,6 @@ public class LineFragmentCache {
myFragments = new HashMap<ComparisonPolicy, PolicyData>(3);
}
public long getStamp1() {
return myModificationStamp1;
}
public long getStamp2() {
return myModificationStamp2;
}
public boolean checkStamps(long stamp1, long stamp2) {
return myModificationStamp1 == stamp1 && myModificationStamp2 == stamp2;
}