From 6a7470f53056ea0ae7eaa627b09b37634ad1006d Mon Sep 17 00:00:00 2001 From: Joshua Litt Date: Tue, 8 Feb 2022 04:10:56 +0000 Subject: [PATCH] [dart2js] Remove unused compile_time_constants.dart. Change-Id: I4a574ac615aabaf63d7bf3e241fc969766f03cf8 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/232030 Reviewed-by: Mayank Patke Commit-Queue: Joshua Litt --- .../lib/src/compile_time_constants.dart | 26 ------------------- 1 file changed, 26 deletions(-) delete mode 100644 pkg/compiler/lib/src/compile_time_constants.dart diff --git a/pkg/compiler/lib/src/compile_time_constants.dart b/pkg/compiler/lib/src/compile_time_constants.dart deleted file mode 100644 index 20e72192f86..00000000000 --- a/pkg/compiler/lib/src/compile_time_constants.dart +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file -// for details. All rights reserved. Use of this source code is governed by a -// BSD-style license that can be found in the LICENSE file. - -library dart2js.compile_time_constant_evaluator; - -import 'common/tasks.dart' show CompilerTask, Measurer; -import 'elements/entities.dart'; - -/// A [ConstantEnvironment] provides access for constants compiled for variable -/// initializers. -abstract class ConstantEnvironment {} - -/// A [BackendConstantEnvironment] provides access to constants needed for -/// backend implementation. -abstract class BackendConstantEnvironment extends ConstantEnvironment { - /// Register that [element] needs lazy initialization. - void registerLazyStatic(FieldEntity element); -} - -/// Interface for the task that compiles the constant environments for the -/// frontend and backend interpretation of compile-time constants. -abstract class ConstantCompilerTask extends CompilerTask - implements ConstantEnvironment { - ConstantCompilerTask(Measurer measurer) : super(measurer); -}