diff options
author | Ulf Adams <ulfjack@google.com> | 2015-11-09 14:07:40 +0000 |
---|---|---|
committer | Damien Martin-Guillerez <dmarting@google.com> | 2015-11-10 10:19:56 +0000 |
commit | 7976797b234466c4519822fa302fafa68f3835d0 (patch) | |
tree | fb66a17f281c07c2bb48f5f38012d7b74aaab130 /src/main/java/com/google/devtools/build/lib/analysis | |
parent | a4b6182140e56fd9bdc659001984ef874402d57e (diff) |
Remove an unused class, ErrorConfiguredTarget.
--
MOS_MIGRATED_REVID=107378107
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/analysis')
-rw-r--r-- | src/main/java/com/google/devtools/build/lib/analysis/ErrorConfiguredTarget.java | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/analysis/ErrorConfiguredTarget.java b/src/main/java/com/google/devtools/build/lib/analysis/ErrorConfiguredTarget.java deleted file mode 100644 index b32f5ee547..0000000000 --- a/src/main/java/com/google/devtools/build/lib/analysis/ErrorConfiguredTarget.java +++ /dev/null @@ -1,41 +0,0 @@ -// Copyright 2014 The Bazel Authors. All rights reserved. -// -// 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. - -package com.google.devtools.build.lib.analysis; - -import com.google.common.collect.UnmodifiableIterator; -import com.google.devtools.build.lib.analysis.config.BuildConfiguration; -import com.google.devtools.build.lib.packages.Target; - -/** - * A configured target that is used instead of a real configured target if there - * are cyclic dependencies or if any of the prerequisites has errors. This - * avoids accessing state that shouldn't be accessed. - */ -final class ErrorConfiguredTarget extends AbstractConfiguredTarget { - ErrorConfiguredTarget(Target target, BuildConfiguration configuration) { - super(target, configuration); - } - - @Override - public Object get(String providerKey) { - throw new UnsupportedOperationException(); - } - - @Override - public UnmodifiableIterator<TransitiveInfoProvider> iterator() { - throw new IllegalStateException(); - } -} - |