Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Kurtakov2015-12-18 06:03:25 -0500
committerAlexander Kurtakov2015-12-18 06:03:25 -0500
commite11035409fb1d4c581911a738570e994caabe14e (patch)
tree4a2aa0aa7ef2e5245794026e1957034fa76bad52 /build/org.eclipse.cdt.autotools.core
parent6c750f9289329b86fd05c20043133d0163d80224 (diff)
downloadorg.eclipse.cdt-e11035409fb1d4c581911a738570e994caabe14e.tar.gz
org.eclipse.cdt-e11035409fb1d4c581911a738570e994caabe14e.tar.xz
org.eclipse.cdt-e11035409fb1d4c581911a738570e994caabe14e.zip
autotools: Creating default config doesn't need project.
AutotoolsConfigurationManager.createDefaultConfiguration doesn't need the project as parameter, that's why it's default one :). Change-Id: I55f39edf5867f874e38524042572329bc7e34f66 Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
Diffstat (limited to 'build/org.eclipse.cdt.autotools.core')
-rw-r--r--build/org.eclipse.cdt.autotools.core/src/org/eclipse/cdt/internal/autotools/core/configure/AutotoolsConfigurationManager.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/build/org.eclipse.cdt.autotools.core/src/org/eclipse/cdt/internal/autotools/core/configure/AutotoolsConfigurationManager.java b/build/org.eclipse.cdt.autotools.core/src/org/eclipse/cdt/internal/autotools/core/configure/AutotoolsConfigurationManager.java
index d52afd0468..6eba7c3e52 100644
--- a/build/org.eclipse.cdt.autotools.core/src/org/eclipse/cdt/internal/autotools/core/configure/AutotoolsConfigurationManager.java
+++ b/build/org.eclipse.cdt.autotools.core/src/org/eclipse/cdt/internal/autotools/core/configure/AutotoolsConfigurationManager.java
@@ -96,7 +96,7 @@ public class AutotoolsConfigurationManager implements IResourceChangeListener {
return instance;
}
- public synchronized IAConfiguration createDefaultConfiguration(IProject project, String id) {
+ public synchronized IAConfiguration createDefaultConfiguration(String id) {
return new AutotoolsConfiguration(id);
}
@@ -112,7 +112,7 @@ public class AutotoolsConfigurationManager implements IResourceChangeListener {
public synchronized IAConfiguration getConfiguration(IProject p, String cfgId, boolean persist) {
IAConfiguration cfg = findCfg(p, cfgId);
if (cfg == null) {
- cfg = createDefaultConfiguration(p, cfgId);
+ cfg = createDefaultConfiguration(cfgId);
if (persist) {
addConfiguration(p, cfg);
}
@@ -394,7 +394,7 @@ public class AutotoolsConfigurationManager implements IResourceChangeListener {
String id = cfgd.getId();
IAConfiguration cfg = cfgs.get(id);
if (cfg == null) {
- cfg = createDefaultConfiguration(project, id);
+ cfg = createDefaultConfiguration(id);
}
p.println("<configuration id=\"" + cfg.getId() + "\">"); //$NON-NLS-1$ //$NON-NLS-2$
for (int j = 0; j < optionList.length; ++j) {
@@ -625,7 +625,7 @@ public class AutotoolsConfigurationManager implements IResourceChangeListener {
// Get set of configuration options and convert to set of IAutotoolOptions
Map<String, IConfigureOption> cfgOptions = cfg.getOptions();
- IAConfiguration dummyCfg = createDefaultConfiguration(project, createDummyId());
+ IAConfiguration dummyCfg = createDefaultConfiguration(createDummyId());
for (Iterator<Entry<String, IConfigureOption>> i = cfgOptions.entrySet().iterator(); i.hasNext();) {
Map.Entry<String, IConfigureOption> entry = i.next();
String name = entry.getKey();

Back to the top