git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[EGIT PATCH] Removal of dead code

From
ABAlex Blewitt <alex@bandlem.com>
Date
Apr 26, 2009, 20:55 UTC
Message-ID
<20090426205506.BC46ADBF31@apple.int.bandlem.com>
>From ee933d31d2ca4a4270aa9f4be6e60beec388e8af Mon Sep 17 00:00:00 2001
From: Alex Blewitt <alex.blewitt@gmail.com>
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(-)
diff --git a/org.spearce.egit.ui/src/org/spearce/egit/ui/internal/preferences/GitDecoratorPreferencePage.java b/org.spearce.egit.ui/src/org/spearce/egit/ui/internal/preferences/GitDecoratorPreferencePage.java
index eca2277..185f242 100644
--- a/org.spearce.egit.ui/src/org/spearce/egit/ui/internal/preferences/GitDecoratorPreferencePage.java
+++ b/org.spearce.egit.ui/src/org/spearce/egit/ui/internal/preferences/GitDecoratorPreferencePage.java
@@ -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;
-		}
 	}
 }
-- 
1.6.2.2
Message 1 of 1 in “Removal of dead code”
  1. Removal of dead codeAlex Blewitt, Apr 26, 2009

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.