|
20 | 20 | import java.util.Objects;
|
21 | 21 | import java.util.stream.Stream;
|
22 | 22 |
|
23 |
| -import com.vaadin.flow.component.Component; |
24 | 23 | import com.vaadin.flow.component.Tag;
|
25 | 24 | import com.vaadin.flow.component.dependency.JsModule;
|
26 | 25 | import com.vaadin.flow.component.dependency.NpmPackage;
|
|
29 | 28 | import com.vaadin.flow.data.provider.DataCommunicator;
|
30 | 29 | import com.vaadin.flow.data.provider.DataKeyMapper;
|
31 | 30 | import com.vaadin.flow.data.provider.DataProvider;
|
32 |
| -import com.vaadin.flow.dom.Element; |
33 | 31 | import com.vaadin.flow.function.SerializableBiPredicate;
|
34 | 32 |
|
35 | 33 | import elemental.json.Json;
|
@@ -328,40 +326,4 @@ protected boolean isSelected(T item) {
|
328 | 326 | public T getEmptyValue() {
|
329 | 327 | return null;
|
330 | 328 | }
|
331 |
| - |
332 |
| - /** |
333 |
| - * Removes the given child components from this component. |
334 |
| - * |
335 |
| - * @param components |
336 |
| - * The components to remove. |
337 |
| - * @throws IllegalArgumentException |
338 |
| - * if any of the components is not a child of this component. |
339 |
| - * @deprecated since v23.3 |
340 |
| - */ |
341 |
| - @Deprecated |
342 |
| - protected void remove(Component... components) { |
343 |
| - for (Component component : components) { |
344 |
| - if (getElement().equals(component.getElement().getParent())) { |
345 |
| - component.getElement().removeAttribute("slot"); |
346 |
| - getElement().removeChild(component.getElement()); |
347 |
| - } else { |
348 |
| - throw new IllegalArgumentException("The given component (" |
349 |
| - + component + ") is not a child of this component"); |
350 |
| - } |
351 |
| - } |
352 |
| - } |
353 |
| - |
354 |
| - /** |
355 |
| - * Removes all contents from this component, this includes child components, |
356 |
| - * text content as well as child elements that have been added directly to |
357 |
| - * this component using the {@link Element} API. |
358 |
| - * |
359 |
| - * @deprecated since v23.3 |
360 |
| - */ |
361 |
| - @Deprecated |
362 |
| - protected void removeAll() { |
363 |
| - getElement().getChildren() |
364 |
| - .forEach(child -> child.removeAttribute("slot")); |
365 |
| - getElement().removeAllChildren(); |
366 |
| - } |
367 | 329 | }
|
0 commit comments