Skip to contentSkip to conversation

Removal of dead code

PATCH New Alex Blewitt 1 participant 1 message Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Removal of dead code

Quoted 1 line

From ee933d31d2ca4a4270aa9f4be6e60beec388e8af Mon Sep 17 00:00:00 2001

From: Alex Blewitt <[email protected]>
Date: Sun, 26 Apr 2009 21:51:17 +0100
Subject: [PATCH] Removed dead code

---
 .../preferences/GitDecoratorPreferencePage.java    |   32 --------------------
 1 files changed, 0 insertions(+), 32 deletions(-)
org.spearce.egit.ui/src/org/spearce/egit/ui/internal/preferences/GitDecoratorPreferencePage.java +0 -32
index eca2277..185f242 100644
@@ -727,18 +727,6 @@ public void inputChanged(Viewer viewer, Object oldInput, Object newInput) {
 			// No-op
 		}
 
-		public Color getBackground(Object element) {
-			return getDecoration(element).getBackgroundColor();
-		}
-
-		public Color getForeground(Object element) {
-			return getDecoration(element).getForegroundColor();
-		}
-
-		public Font getFont(Object element) {
-			return getDecoration(element).getFont();
-		}
-
 		public String getText(Object element) {
 			final PreviewDecoration decoration = getDecoration(element);
 			final StringBuffer buffer = new StringBuffer();
@@ -869,12 +857,6 @@ public boolean isAssumeValid() {
 
 		private ImageDescriptor overlay = null;
 
-		private Font font;
-
-		private Color backgroundColor;
-
-		private Color foregroundColor;
-
 		/**
 		 * Adds an icon overlay to the decoration
 		 * <p>
@@ -903,15 +885,12 @@ public IDecorationContext getDecorationContext() {
 		}
 
 		public void setBackgroundColor(Color color) {
-			backgroundColor = color;
 		}
 
 		public void setForegroundColor(Color color) {
-			foregroundColor = color;
 		}
 
 		public void setFont(Font font) {
-			this.font = font;
 		}
 
 		public ImageDescriptor getOverlay() {
@@ -934,16 +913,5 @@ public String getSuffix() {
 			return sb.toString();
 		}
 
-		public Font getFont() {
-			return font;
-		}
-
-		public Color getBackgroundColor() {
-			return backgroundColor;
-		}
-
-		public Color getForegroundColor() {
-			return foregroundColor;
-		}
 	}
 }
Signature · 1 line
1.6.2.2