removed obsolete code.
authorwpaul
Mon, 30 Aug 2010 20:19:48 -0500
changeset 1924 c8f736b04bf4
parent 1923 581f0f8d494b
child 1925 54d4f01c8389
removed obsolete code.
project/com.nokia.carbide.cpp.project.ui/src/com/nokia/carbide/cpp/internal/project/ui/importWizards/BldInfImportWizard.java
--- a/project/com.nokia.carbide.cpp.project.ui/src/com/nokia/carbide/cpp/internal/project/ui/importWizards/BldInfImportWizard.java	Mon Aug 30 20:19:09 2010 -0500
+++ b/project/com.nokia.carbide.cpp.project.ui/src/com/nokia/carbide/cpp/internal/project/ui/importWizards/BldInfImportWizard.java	Mon Aug 30 20:19:48 2010 -0500
@@ -37,7 +37,6 @@
 import org.eclipse.ui.IWorkbench;
 
 import com.nokia.carbide.cdt.builder.CarbideBuilderPlugin;
-import com.nokia.carbide.cdt.builder.project.ICarbideProjectInfo;
 import com.nokia.carbide.cpp.internal.api.sdk.ISDKManagerInternal;
 import com.nokia.carbide.cpp.internal.featureTracker.FeatureUseTrackerPlugin;
 import com.nokia.carbide.cpp.internal.project.ui.ProjectUIPlugin;
@@ -102,8 +101,6 @@
 		// way the project setting will be set to build bld.inf.
 		final List<String> components = mmpSelectionPage.areAllMakMakeReferencesChecked() ? new ArrayList<String>(0) : mmpSelectionPage.getSelectedMakMakeReferences();
 
-		final List<String> refs = getSelectedMakMakeReferences();
-		
 		final List<ISymbianBuildContext> selectedConfigs = getSelectedConfigs();
 
 		// run this in a workspace job
@@ -112,25 +109,6 @@
 			public IStatus runInWorkspace(IProgressMonitor monitor) throws CoreException {
 				monitor.beginTask(Messages.BldInfImportWizard_CreatingProjectJobName, IProgressMonitor.UNKNOWN);
 
-				// write the debug target mmp setting - use the last mmp in
-				// the list of selected mak make files.
-				// We also need to check for project test mmpfiles and add that only if the project is only comprised of test mmp files
-				String debugMMP = ""; //$NON-NLS-1$
-				boolean hasOneNormalMMP = false; // Don't add test mmp if there's a regular MMP
-				for (String ref : refs) {
-					if (ref.toLowerCase().endsWith(".mmp")){
-						hasOneNormalMMP = true;
-						debugMMP = ref;
-					}
-					
-					if (hasOneNormalMMP == false){
-						if (ref.toLowerCase().endsWith(".mmp " + ICarbideProjectInfo.TEST_COMPONENT_LABEL)) { //$NON-NLS-1$
-			    			debugMMP = ref;
-		    				debugMMP = debugMMP.substring(0, debugMMP.indexOf( " " + ICarbideProjectInfo.TEST_COMPONENT_LABEL));
-			    		}
-					}
-				} // for
-
 				IProject newProject = null;
 				if (isLinkedProject){
 					newProject = ProjectCorePlugin.createProject(projectName, null);
@@ -143,9 +121,9 @@
     			newProject.setSessionProperty(CarbideBuilderPlugin.SBSV2_PROJECT, Boolean.valueOf(useSBSv2Builder()));
 
     			if (isLinkedProject){
-    				ProjectCorePlugin.postProjectCreatedActions(newProject, absoluteInfPath, selectedConfigs, components, debugMMP, null, monitor);
+    				ProjectCorePlugin.postProjectCreatedActions(newProject, absoluteInfPath, selectedConfigs, components, null, null, monitor);
     			} else {
-    				ProjectCorePlugin.postProjectCreatedActions(newProject, projectRelativePath, selectedConfigs, components, debugMMP, null, monitor);
+    				ProjectCorePlugin.postProjectCreatedActions(newProject, projectRelativePath, selectedConfigs, components, null, null, monitor);
     			}
         		
         		if (monitor.isCanceled()) {