[hotfix] Remove unused (and broken) TraversableOnceIterable.
Project: http://git-wip-us.apache.org/repos/asf/flink/repo Commit: http://git-wip-us.apache.org/repos/asf/flink/commit/24dee42e Tree: http://git-wip-us.apache.org/repos/asf/flink/tree/24dee42e Diff: http://git-wip-us.apache.org/repos/asf/flink/diff/24dee42e Branch: refs/heads/master Commit: 24dee42e0a68a38e87a5ec53e683c086a47698b3 Parents: b08e30a Author: Stephan Ewen <[email protected]> Authored: Mon Aug 3 12:33:47 2015 +0200 Committer: Stephan Ewen <[email protected]> Committed: Mon Aug 3 18:48:07 2015 +0200 ---------------------------------------------------------------------- .../flink/util/TraversableOnceIterable.java | 42 -------------------- 1 file changed, 42 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/flink/blob/24dee42e/flink-core/src/main/java/org/apache/flink/util/TraversableOnceIterable.java ---------------------------------------------------------------------- diff --git a/flink-core/src/main/java/org/apache/flink/util/TraversableOnceIterable.java b/flink-core/src/main/java/org/apache/flink/util/TraversableOnceIterable.java deleted file mode 100644 index 73e3cd6..0000000 --- a/flink-core/src/main/java/org/apache/flink/util/TraversableOnceIterable.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you 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. - */ - -package org.apache.flink.util; - -import java.util.Iterator; - -public class TraversableOnceIterable<T> implements Iterable<T> { - - private final Iterator<T> iterator; - - public TraversableOnceIterable(Iterator<T> iterator) { - if (iterator == null) { - throw new NullPointerException("The iterator must not be null."); - } - this.iterator = iterator; - } - - @Override - public Iterator<T> iterator() { - if (iterator != null) { - return iterator; - } else { - throw new TraversableOnceException(); - } - } -}
