Skip to content

Commit cbd0607

Browse files
authored
[CQ] remove slated-for-removal Welcome.CreateNewProject reference (#8145)
Removes `Welcome.CreateNewProject` which is slated for removal. ![image](https://github.com/user-attachments/assets/0f220bac-8e30-493c-8afc-7537b0810bf5) Interestingly this code has been dead since 6350cf8#diff-677d60b823c040a662bc3a70f9be4541281838b806d79c129da0e1227bada185. See: #7718 --- - [x] I’ve reviewed the contributor guide and applied the relevant portions to this PR. <details> <summary>Contribution guidelines:</summary><br> - See our [contributor guide]([https://github.com/dart-lang/sdk/blob/main/CONTRIBUTING.md](https://github.com/flutter/flutter/blob/main/docs/contributing/Tree-hygiene.md#overview) for general expectations for PRs. - Larger or significant changes should be discussed in an issue before creating a PR. - Dart contributions to our repos should follow the [Dart style guide](https://dart.dev/guides/language/effective-dart) and use `dart format`. - Java and Kotlin contributions should strive to follow Java and Kotlin best practices ([discussion](#8098)). </details>
1 parent 0c1007c commit cbd0607

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

flutter-studio/src/io/flutter/actions/FlutterNewProjectAction.java

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
*/
66
package io.flutter.actions;
77

8-
import com.intellij.icons.AllIcons;
98
import com.intellij.ide.impl.NewProjectUtil;
109
import com.intellij.ide.projectWizard.NewProjectWizard;
1110
import com.intellij.openapi.actionSystem.ActionUpdateThread;
@@ -14,12 +13,7 @@
1413
import com.intellij.openapi.project.DumbAware;
1514
import com.intellij.openapi.roots.ui.configuration.ModulesProvider;
1615
import com.intellij.openapi.wm.impl.welcomeScreen.NewWelcomeScreen;
17-
import com.intellij.ui.LayeredIcon;
18-
import com.intellij.ui.OffsetIcon;
19-
import icons.FlutterIcons;
2016
import io.flutter.FlutterBundle;
21-
import javax.swing.Icon;
22-
2317
import io.flutter.FlutterUtils;
2418
import org.jetbrains.annotations.NotNull;
2519

@@ -32,7 +26,6 @@ public FlutterNewProjectAction() {
3226
@Override
3327
public void update(@NotNull AnActionEvent e) {
3428
if (NewWelcomeScreen.isNewWelcomeScreen(e)) {
35-
//e.getPresentation().setIcon(getFlutterDecoratedIcon());
3629
e.getPresentation().setText(FlutterBundle.message("welcome.new.project.compact"));
3730
}
3831
}
@@ -51,15 +44,4 @@ public void actionPerformed(@NotNull AnActionEvent e) {
5144
public ActionUpdateThread getActionUpdateThread() {
5245
return ActionUpdateThread.BGT;
5346
}
54-
55-
@NotNull
56-
Icon getFlutterDecoratedIcon() {
57-
Icon icon = AllIcons.Welcome.CreateNewProject;
58-
Icon badgeIcon = new OffsetIcon(0, FlutterIcons.Flutter_badge).scale(0.666f);
59-
60-
LayeredIcon decorated = new LayeredIcon(2);
61-
decorated.setIcon(badgeIcon, 0, 7, 7);
62-
decorated.setIcon(icon, 1, 0, 0);
63-
return decorated;
64-
}
6547
}

0 commit comments

Comments
 (0)