mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
diff: remove unused methods
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user