diff --git a/core/trino-spi/src/main/java/io/trino/spi/connector/FixedPageSource.java b/core/trino-spi/src/main/java/io/trino/spi/connector/FixedPageSource.java index fb238bb94e9d..39536c57ea75 100644 --- a/core/trino-spi/src/main/java/io/trino/spi/connector/FixedPageSource.java +++ b/core/trino-spi/src/main/java/io/trino/spi/connector/FixedPageSource.java @@ -29,21 +29,12 @@ public class FixedPageSource private long completedBytes; private boolean closed; - /** - * @deprecated This constructor hides the fact {@code pages} are iterated twice. - */ - @Deprecated - public FixedPageSource(Iterable pages) - { - this(pages.iterator(), memoryUsage(pages)); - } - public FixedPageSource(List pages) { this(pages.iterator(), memoryUsage(pages)); } - private static long memoryUsage(Iterable pages) + private static long memoryUsage(List pages) { long memoryUsageBytes = 0; for (Page page : pages) {