aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorGravatar Lukacs Berki <lberki@google.com>2016-06-13 07:51:55 +0000
committerGravatar Yue Gan <yueg@google.com>2016-06-13 08:13:03 +0000
commit6388680b44893c2b3ccddd73f6c4abb693a18cd4 (patch)
tree6575228ab36de9561bc00b02afe29e19d3dad129 /src
parent4f854d47888d011354357e965fd3c7bf1d74b95f (diff)
Remove ConfigurationsCreatedEvent.
We'll (hopefully) soon have multiple target and host configurations and we won't be able to say what they are at the beginning of the build. -- MOS_MIGRATED_REVID=124701606
Diffstat (limited to 'src')
-rw-r--r--src/main/java/com/google/devtools/build/lib/analysis/ConfigurationsCreatedEvent.java38
-rw-r--r--src/main/java/com/google/devtools/build/lib/buildtool/BuildTool.java2
2 files changed, 0 insertions, 40 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/analysis/ConfigurationsCreatedEvent.java b/src/main/java/com/google/devtools/build/lib/analysis/ConfigurationsCreatedEvent.java
deleted file mode 100644
index e2bc471c0b..0000000000
--- a/src/main/java/com/google/devtools/build/lib/analysis/ConfigurationsCreatedEvent.java
+++ /dev/null
@@ -1,38 +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.devtools.build.lib.analysis.config.BuildConfigurationCollection;
-
-/**
- * This event is fired when the build configurations are created.
- */
-public class ConfigurationsCreatedEvent {
-
- private final BuildConfigurationCollection configurations;
-
- /**
- * Construct the ConfigurationsCreatedEvent.
- *
- * @param configurations the build configuration collection
- */
- public ConfigurationsCreatedEvent(BuildConfigurationCollection configurations) {
- this.configurations = configurations;
- }
-
- public BuildConfigurationCollection getBuildConfigurationCollection() {
- return configurations;
- }
-}
diff --git a/src/main/java/com/google/devtools/build/lib/buildtool/BuildTool.java b/src/main/java/com/google/devtools/build/lib/buildtool/BuildTool.java
index 182b74cd14..a11cd65461 100644
--- a/src/main/java/com/google/devtools/build/lib/buildtool/BuildTool.java
+++ b/src/main/java/com/google/devtools/build/lib/buildtool/BuildTool.java
@@ -25,7 +25,6 @@ import com.google.devtools.build.lib.analysis.AnalysisPhaseCompleteEvent;
import com.google.devtools.build.lib.analysis.BuildInfoEvent;
import com.google.devtools.build.lib.analysis.BuildView;
import com.google.devtools.build.lib.analysis.BuildView.AnalysisResult;
-import com.google.devtools.build.lib.analysis.ConfigurationsCreatedEvent;
import com.google.devtools.build.lib.analysis.ConfiguredAttributeMapper;
import com.google.devtools.build.lib.analysis.ConfiguredTarget;
import com.google.devtools.build.lib.analysis.LicensesProvider;
@@ -180,7 +179,6 @@ public final class BuildTool {
env.getReporter(), runtime.getConfigurationFactory(), buildOptions,
request.getMultiCpus(), request.getViewOptions().keepGoing);
- env.getEventBus().post(new ConfigurationsCreatedEvent(configurations));
env.throwPendingException();
if (configurations.getTargetConfigurations().size() == 1) {
// TODO(bazel-team): This is not optimal - we retain backwards compatibility in the case