Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4)

Unified Diff: dart/editor/tools/plugins/com.google.dart.tools.debug.core/src/com/google/dart/tools/debug/core/DartDebugCorePlugin.java

Issue 59073003: Version 0.8.10.4 (Closed) Base URL: http://dart.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: dart/editor/tools/plugins/com.google.dart.tools.debug.core/src/com/google/dart/tools/debug/core/DartDebugCorePlugin.java
===================================================================
--- dart/editor/tools/plugins/com.google.dart.tools.debug.core/src/com/google/dart/tools/debug/core/DartDebugCorePlugin.java (revision 29808)
+++ dart/editor/tools/plugins/com.google.dart.tools.debug.core/src/com/google/dart/tools/debug/core/DartDebugCorePlugin.java (working copy)
@@ -13,7 +13,6 @@
*/
package com.google.dart.tools.debug.core;
-import com.google.dart.tools.core.DartCore;
import com.google.dart.tools.core.DartCoreDebug;
import com.google.dart.tools.core.utilities.general.StringUtilities;
import com.google.dart.tools.debug.core.pubserve.PubServeLaunchConfigurationDelegate;
@@ -22,8 +21,6 @@
import com.google.dart.tools.debug.core.util.ResourceChangeManager;
import com.google.dart.tools.debug.core.util.ResourceServerManager;
-import org.eclipse.core.resources.IFile;
-import org.eclipse.core.resources.IProject;
import org.eclipse.core.runtime.IStatus;
import org.eclipse.core.runtime.Plugin;
import org.eclipse.core.runtime.Status;
@@ -32,7 +29,6 @@
import org.eclipse.debug.core.DebugEvent;
import org.eclipse.debug.core.DebugPlugin;
import org.eclipse.debug.core.IDebugEventSetListener;
-import org.eclipse.debug.core.ILaunchConfiguration;
import org.osgi.framework.BundleContext;
import org.osgi.service.prefs.BackingStoreException;
@@ -113,40 +109,6 @@
private static long loggingStart = System.currentTimeMillis();
/**
- * Returns true if the given launch config can be launched w/o waiting on the builder.
- */
- public static boolean canFastLaunch(ILaunchConfiguration config) {
- DartLaunchConfigWrapper wrapper = new DartLaunchConfigWrapper(config);
- IProject project = wrapper.getProject();
-
- if (project == null) {
- return false;
- }
-
- // if pubspec.yaml is not up-to-date, return false
- IFile pubspecYamlFile = project.getFile(DartCore.PUBSPEC_FILE_NAME);
-
- if (pubspecYamlFile.exists()) {
- IFile pubspecLockFile = project.getFile(DartCore.PUBSPEC_LOCK_FILE_NAME);
-
- if (!pubspecLockFile.exists()) {
- return false;
- }
-
- if (pubspecLockFile.getModificationStamp() < pubspecYamlFile.getModificationStamp()) {
- return false;
- }
- }
-
- // no build.dart (though we can optimize this in the future)
- if (project.getFile(DartCore.BUILD_DART_FILE_NAME).exists()) {
- return false;
- }
-
- return true;
- }
-
- /**
* Create a Status object with the given message and this plugin's ID.
*
* @param message

Powered by Google App Engine
This is Rietveld 408576698