From 27f18249c7d7764b88b9d200f4aca854af4cd27f Mon Sep 17 00:00:00 2001 From: Julia Beliaeva Date: Sat, 17 Nov 2018 23:47:55 +0300 Subject: [PATCH] [vcs-log] remove unused methods Default getIconHeight implementation was used in StripeIcon, which was removed in f6ba2ae34f216fd3cd943119c2b6be657e46161e. --- .../vcs/log/ui/frame/ProgressStripeIcon.java | 26 +------------------ 1 file changed, 1 insertion(+), 25 deletions(-) diff --git a/platform/vcs-log/impl/src/com/intellij/vcs/log/ui/frame/ProgressStripeIcon.java b/platform/vcs-log/impl/src/com/intellij/vcs/log/ui/frame/ProgressStripeIcon.java index 14c33600da01..07546cec6e1d 100644 --- a/platform/vcs-log/impl/src/com/intellij/vcs/log/ui/frame/ProgressStripeIcon.java +++ b/platform/vcs-log/impl/src/com/intellij/vcs/log/ui/frame/ProgressStripeIcon.java @@ -1,18 +1,4 @@ -/* - * Copyright 2000-2016 JetBrains s.r.o. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ +// Copyright 2000-2018 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.vcs.log.ui.frame; import com.intellij.ide.ui.laf.intellij.MacIntelliJProgressBarUI; @@ -35,7 +21,6 @@ import static com.intellij.ui.JBColor.namedColor; public abstract class ProgressStripeIcon implements Icon { private static final int TRANSLATE = 1; - private static final int HEIGHT = 3; @NotNull private final JComponent myReferenceComponent; private final int myShift; @@ -68,15 +53,6 @@ public abstract class ProgressStripeIcon implements Icon { return myReferenceComponent.getWidth(); } - @Override - public int getIconHeight() { - return getHeight(); - } - - public static int getHeight() { - return JBUI.scale(HEIGHT); - } - private static class GradientIcon extends ProgressStripeIcon { private static final Color DARK = new ProgressStripeColor(namedColor("ProgressBar.indeterminateStartColor", new JBColor(new Color(0x4d9ff8), new Color(0x6a6a6a))),