From eb634a392b3de6c8de5fd2d64be3c6514d4fee14 Mon Sep 17 00:00:00 2001 From: Javier Godoy <11554739+javier-godoy@users.noreply.github.com> Date: Wed, 19 Nov 2025 10:39:55 -0300 Subject: [PATCH] remove(demo)!: remove LegacyDemo --- .../flowingcode/vaadin/addons/demo/Demo.java | 1 - .../vaadin/addons/demo/LegacyDemo.java | 36 ------------------- .../addons/demo/LegacyDemoHelperRenderer.java | 36 ------------------- 3 files changed, 73 deletions(-) delete mode 100644 src/test/java/com/flowingcode/vaadin/addons/demo/LegacyDemo.java delete mode 100644 src/test/java/com/flowingcode/vaadin/addons/demo/LegacyDemoHelperRenderer.java diff --git a/src/test/java/com/flowingcode/vaadin/addons/demo/Demo.java b/src/test/java/com/flowingcode/vaadin/addons/demo/Demo.java index 81cc1fd..233c742 100644 --- a/src/test/java/com/flowingcode/vaadin/addons/demo/Demo.java +++ b/src/test/java/com/flowingcode/vaadin/addons/demo/Demo.java @@ -29,7 +29,6 @@ public class Demo extends TabbedDemo { public Demo() { - addDemo(new LegacyDemo()); addDemo(SampleDemo.class); addDemo(SampleDemoDefault.class); addDemo(SampleDemoHighlight.class); diff --git a/src/test/java/com/flowingcode/vaadin/addons/demo/LegacyDemo.java b/src/test/java/com/flowingcode/vaadin/addons/demo/LegacyDemo.java deleted file mode 100644 index 74cbd3a..0000000 --- a/src/test/java/com/flowingcode/vaadin/addons/demo/LegacyDemo.java +++ /dev/null @@ -1,36 +0,0 @@ -/*- - * #%L - * Commons Demo - * %% - * Copyright (C) 2020 - 2023 Flowing Code - * %% - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * #L% - */ -package com.flowingcode.vaadin.addons.demo; - -import com.vaadin.flow.component.html.Div; -import com.vaadin.flow.component.html.Span; -import com.vaadin.flow.component.icon.VaadinIcon; -import com.vaadin.flow.router.PageTitle; - -@DemoHelper(renderer = LegacyDemoHelperRenderer.class, icon = VaadinIcon.INFO_CIRCLE) -@PageTitle("Legacy") -@DemoSource -public class LegacyDemo extends Div { - - public LegacyDemo() { - add(new Span("Legacy demo")); - } - -} diff --git a/src/test/java/com/flowingcode/vaadin/addons/demo/LegacyDemoHelperRenderer.java b/src/test/java/com/flowingcode/vaadin/addons/demo/LegacyDemoHelperRenderer.java deleted file mode 100644 index a9490f6..0000000 --- a/src/test/java/com/flowingcode/vaadin/addons/demo/LegacyDemoHelperRenderer.java +++ /dev/null @@ -1,36 +0,0 @@ -/*- - * #%L - * Commons Demo - * %% - * Copyright (C) 2020 - 2023 Flowing Code - * %% - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * #L% - */ -package com.flowingcode.vaadin.addons.demo; - -import com.vaadin.flow.component.Component; -import com.vaadin.flow.component.html.H3; -import com.vaadin.flow.component.html.Span; -import com.vaadin.flow.component.orderedlayout.VerticalLayout; - -public class LegacyDemoHelperRenderer implements DemoHelperRenderer { - - @Override - public Component helperContent() { - VerticalLayout content = new VerticalLayout(); - content.add(new H3("Legacy Demo help")); - content.add(new Span("Legacy Demo help description.")); - return content; - } -}