mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
get rid of dead code
GitOrigin-RevId: 16bc993d3c3c2759ac6ce7a3fbbb1bb82026de66
This commit is contained in:
committed by
intellij-monorepo-bot
parent
b950589b47
commit
bc643fd373
@@ -164,12 +164,11 @@ public final class FavoritesManager implements ProjectComponent, JDOMExternaliza
|
||||
return myViewSettings;
|
||||
}
|
||||
|
||||
public synchronized boolean removeFavoritesList(@NotNull String name) {
|
||||
boolean result = myName2FavoritesRoots.remove(name) != null;
|
||||
public synchronized void removeFavoritesList(@NotNull String name) {
|
||||
myName2FavoritesRoots.remove(name);
|
||||
myFavoritesRootsOrder.remove(name);
|
||||
myDescriptions.remove(name);
|
||||
listRemoved(name);
|
||||
return result;
|
||||
}
|
||||
|
||||
@NotNull
|
||||
@@ -467,7 +466,7 @@ public final class FavoritesManager implements ProjectComponent, JDOMExternaliza
|
||||
final ProjectFileIndex projectFileIndex = ProjectRootManager.getInstance(myProject).getFileIndex();
|
||||
final Set<Boolean> find = new HashSet<>();
|
||||
final ContentIterator contentIterator = fileOrDir -> {
|
||||
if (fileOrDir != null && fileOrDir.getPath().equals(vFile.getPath())) {
|
||||
if (fileOrDir.getPath().equals(vFile.getPath())) {
|
||||
find.add(Boolean.TRUE);
|
||||
}
|
||||
return true;
|
||||
|
||||
@@ -1,29 +0,0 @@
|
||||
// Copyright 2000-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
|
||||
package com.intellij.openapi.ui;
|
||||
|
||||
import com.intellij.openapi.util.Condition;
|
||||
|
||||
import javax.swing.*;
|
||||
import java.awt.*;
|
||||
|
||||
/**
|
||||
* @author Konstantin Bulenkov
|
||||
*/
|
||||
public class InvariantIcon implements Icon {
|
||||
public InvariantIcon(Icon base, Icon optional, Condition condition) {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void paintIcon(Component c, Graphics g, int x, int y) {
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getIconWidth() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getIconHeight() {
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
@@ -9,9 +9,6 @@ public interface NullableComponent {
|
||||
boolean isNull();
|
||||
|
||||
class Check {
|
||||
private Check() {
|
||||
}
|
||||
|
||||
public static boolean isNull(Component c) {
|
||||
return c == null || c instanceof NullableComponent && ((NullableComponent)c).isNull();
|
||||
}
|
||||
@@ -19,9 +16,5 @@ public interface NullableComponent {
|
||||
public static boolean isNullOrHidden(Component c) {
|
||||
return c != null && !c.isShowing() || isNull(c);
|
||||
}
|
||||
|
||||
public static boolean isNotNullAndVisible(Component c) {
|
||||
return !isNull(c) && c.isVisible();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,15 +0,0 @@
|
||||
// Copyright 2000-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
|
||||
package com.intellij.openapi.util;
|
||||
|
||||
import com.intellij.util.ui.update.ComparableObject;
|
||||
|
||||
public abstract class IdRunnable extends ComparableObject.Impl implements Runnable {
|
||||
|
||||
public IdRunnable(Object object) {
|
||||
super(object);
|
||||
}
|
||||
|
||||
public IdRunnable(Object[] objects) {
|
||||
super(objects);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user