Skip to content

Commit 20621a9

Browse files
committed
refactor: remove unused parameter
1 parent 54ead0e commit 20621a9

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/main/java/com/flowingcode/vaadin/addons/demo/TabbedDemo.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -112,16 +112,15 @@ public void addDemo(Component demo) {
112112
*/
113113
@Deprecated
114114
public void addDemo(Component demo, String label, String sourceCodeUrl) {
115-
this.addDemo(demo.getClass(), label, sourceCodeUrl);
115+
this.addDemo(demo.getClass(), label);
116116
}
117117

118118
/** Add a tab with a demo component.
119119
*
120120
* @param clazz the class of routed demo view component
121121
* @param label the demo name (tab label)
122-
* @param sourceCodeUrl the url of the demo, <b>null</b> to not show source code section.
123122
*/
124-
public void addDemo(Class<? extends Component> clazz, String label, String sourceCodeUrl) {
123+
public void addDemo(Class<? extends Component> clazz, String label) {
125124
if(!clazz.isAnnotationPresent(Route.class)) {
126125
throw new IllegalArgumentException(clazz + " must be annotated as Route");
127126
}

0 commit comments

Comments
 (0)