Skip to content

Commit ddca106

Browse files
authored
unused methods (#2247)
1 parent 49f1019 commit ddca106

1 file changed

Lines changed: 2 additions & 17 deletions

File tree

  • plugins/com.google.cloud.tools.eclipse.dataflow.ui/src/com/google/cloud/tools/eclipse/dataflow/ui

plugins/com.google.cloud.tools.eclipse.dataflow.ui/src/com/google/cloud/tools/eclipse/dataflow/ui/DataflowUiPlugin.java

Lines changed: 2 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
import org.eclipse.core.runtime.IStatus;
2020
import org.eclipse.core.runtime.Status;
2121
import org.eclipse.jface.dialogs.IDialogSettings;
22-
import org.eclipse.jface.resource.ImageDescriptor;
2322
import org.eclipse.swt.widgets.Shell;
2423
import org.eclipse.ui.plugin.AbstractUIPlugin;
2524
import org.osgi.framework.BundleContext;
@@ -49,13 +48,6 @@ public void stop(BundleContext context) throws Exception {
4948
super.stop(context);
5049
}
5150

52-
/**
53-
* Returns the shared instance.
54-
*/
55-
public static DataflowUiPlugin getDefault() {
56-
return plugin;
57-
}
58-
5951
public static IDialogSettings getDialogSettingsSection(String sectionName) {
6052
IDialogSettings settings = plugin.getDialogSettings();
6153
IDialogSettings section = settings.getSection(sectionName);
@@ -65,15 +57,8 @@ public static IDialogSettings getDialogSettingsSection(String sectionName) {
6557
return section;
6658
}
6759

68-
/**
69-
* Returns an image descriptor for the image file at the given plug-in relative path.
70-
*/
71-
public static ImageDescriptor getImageDescriptor(String path) {
72-
return imageDescriptorFromPlugin(PLUGIN_ID, path);
73-
}
74-
7560
private static void log(IStatus status) {
76-
getDefault().getLog().log(status);
61+
plugin.getLog().log(status);
7762
}
7863

7964
public static void logInfo(String message, Object... fArgs) {
@@ -90,6 +75,6 @@ public static void logError(Throwable e, String message, Object... fArgs) {
9075
}
9176

9277
public static Shell getActiveWindowShell() {
93-
return getDefault().getWorkbench().getActiveWorkbenchWindow().getShell();
78+
return plugin.getWorkbench().getActiveWorkbenchWindow().getShell();
9479
}
9580
}

0 commit comments

Comments
 (0)