Bug 279658 [UI] ResourceUtility has unused methods
In org.eclipse.e4.ui.workbench.swt.ResourceUtility, the methods - getGradientColors() - getColor() and field - private ColorRegistry COLOR_REGISTRY all appear unused. In a config with CSS, it handles gradients, colors, and the color registry (although the latter is worth discussing), so I'm not sure the purpose of the methods here.
bundles/org.eclipse.e4.ui.workbench.swt/src/org/eclipse/e4/ui/workbench/swt/internal/ResourceUtility.java
import org.eclipse.e4.ui.workbench.swt.util.ISWTResourceUtiltities;
import org.eclipse.emf.common.util.URI;
import org.eclipse.jface.resource.ColorDescriptor;
import org.eclipse.jface.resource.ColorRegistry;
import org.eclipse.jface.resource.ImageDescriptor;
import org.eclipse.jface.resource.ImageRegistry;
import org.eclipse.swt.graphics.Image;
import org.eclipse.swt.graphics.RGB;
import org.osgi.framework.Bundle;
import org.osgi.service.packageadmin.PackageAdmin;
public class ResourceUtility implements ISWTResourceUtiltities {
	public static final String PROTOCOL = "bundle-resource://"; 
	private ImageRegistry IMAGE_REGISTRY = new ImageRegistry();
	private ColorRegistry COLOR_REGISTRY = new ColorRegistry();
	private final PackageAdmin packageAdmin;
	public ResourceUtility(PackageAdmin packageAdmin) {
		this.packageAdmin = packageAdmin;
	}
	public ImageDescriptor resolveIconResource(String resource) {
		Image rv;
		String bundle = resource.substring(PROTOCOL.length(), resource.indexOf(
				"/", PROTOCOL.length())); 
		String path = resource.substring(bundle.length() + PROTOCOL.length());
		if ((rv = IMAGE_REGISTRY.get(resource)) == null) {
			ImageDescriptor desc = imageDescriptorFromPlugin(bundle, path);
			rv = desc.createImage();
			IMAGE_REGISTRY.put(resource, rv);
		}
		return ImageDescriptor.createFromImage(rv);
	}