[NPW] cleanup: removed client code for the old new project wizard

The new version of the new project wizard has been stable for more than a year. Anymore, we don't need fallback to old one.

GitOrigin-RevId: 1351f238d7b44a775e0cfaf61fcfadb09fbbc702
This commit is contained in:
Sergei Vorobyov
2023-12-12 14:18:46 +01:00
committed by intellij-monorepo-bot
parent d90ce2aab4
commit ed08f7311e
4 changed files with 8 additions and 9 deletions

View File

@@ -2,7 +2,6 @@
package com.intellij.ide.util.projectWizard;
import com.intellij.ide.NewProjectWizardLegacy;
import com.intellij.openapi.diagnostic.Logger;
import com.intellij.openapi.module.ModifiableModuleModel;
import com.intellij.openapi.module.Module;
@@ -60,7 +59,7 @@ public class JavaModuleBuilder extends ModuleBuilder implements SourcePathsBuild
@Override
public boolean isAvailable() {
return NewProjectWizardLegacy.isAvailable();
return false;
}
@Override

View File

@@ -2,7 +2,6 @@
package com.intellij.openapi.module;
import com.intellij.icons.AllIcons;
import com.intellij.ide.NewProjectWizardLegacy;
import com.intellij.ide.util.projectWizard.ModuleBuilder;
import com.intellij.ide.util.projectWizard.ModuleWizardStep;
import com.intellij.ide.util.projectWizard.SettingsStep;
@@ -69,7 +68,7 @@ public class WebModuleBuilder<T> extends ModuleBuilder {
@Override
public boolean isAvailable() {
return NewProjectWizardLegacy.isAvailable();
return false;
}
@Override

View File

@@ -1,10 +1,12 @@
// Copyright 2000-2021 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.ide;
import com.intellij.openapi.application.Experiments;
/**
* @deprecated Fallback to old implementation of the new project wizard isn't needed. Please remove it.
*/
@Deprecated(forRemoval = true)
public final class NewProjectWizardLegacy {
public static boolean isAvailable() {
return !Experiments.getInstance().isFeatureEnabled("new.project.wizard");
return false;
}
}

View File

@@ -1,7 +1,6 @@
// Copyright 2000-2021 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.jetbrains.python.module;
import com.intellij.ide.NewProjectWizardLegacy;
import com.intellij.ide.util.projectWizard.ModuleWizardStep;
import com.intellij.ide.util.projectWizard.SdkSettingsStep;
import com.intellij.ide.util.projectWizard.SettingsStep;
@@ -38,7 +37,7 @@ public class PythonModuleBuilder extends PythonModuleBuilderBase implements Sour
@Override
public boolean isAvailable() {
return NewProjectWizardLegacy.isAvailable();
return false;
}
@Override