From 9ff2d2b937d939e7b5aebc2dc4cdb09e151b64fc Mon Sep 17 00:00:00 2001 From: Dan Field Date: Tue, 8 Jan 2019 12:21:25 -0800 Subject: [PATCH] Cleanup dead code (flutter/engine#7409) * Remove unused files --- .../flutter/ci/licenses_golden/licenses_flutter | 2 -- engine/src/flutter/lib/snapshot/snapshot.dart | 14 -------------- .../flutter/lib/snapshot/snapshot_fuchsia.dart | 17 ----------------- engine/src/flutter/lib/ui/natives.dart | 8 -------- 4 files changed, 41 deletions(-) delete mode 100644 engine/src/flutter/lib/snapshot/snapshot.dart delete mode 100644 engine/src/flutter/lib/snapshot/snapshot_fuchsia.dart diff --git a/engine/src/flutter/ci/licenses_golden/licenses_flutter b/engine/src/flutter/ci/licenses_golden/licenses_flutter index 71c880e66b2..6139500e686 100644 --- a/engine/src/flutter/ci/licenses_golden/licenses_flutter +++ b/engine/src/flutter/ci/licenses_golden/licenses_flutter @@ -214,9 +214,7 @@ FILE: ../../../flutter/fml/unique_object.h FILE: ../../../flutter/lib/io/dart_io.cc FILE: ../../../flutter/lib/io/dart_io.h FILE: ../../../flutter/lib/snapshot/libraries.json -FILE: ../../../flutter/lib/snapshot/snapshot.dart FILE: ../../../flutter/lib/snapshot/snapshot.h -FILE: ../../../flutter/lib/snapshot/snapshot_fuchsia.dart FILE: ../../../flutter/lib/ui/compositing.dart FILE: ../../../flutter/lib/ui/compositing/scene.cc FILE: ../../../flutter/lib/ui/compositing/scene.h diff --git a/engine/src/flutter/lib/snapshot/snapshot.dart b/engine/src/flutter/lib/snapshot/snapshot.dart deleted file mode 100644 index c411f09a22e..00000000000 --- a/engine/src/flutter/lib/snapshot/snapshot.dart +++ /dev/null @@ -1,14 +0,0 @@ -// Copyright 2013 The Flutter Authors. All rights reserved. -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. - -import 'dart:async'; -import 'dart:collection'; -import 'dart:convert'; -import 'dart:core'; -import 'dart:developer'; -import 'dart:io'; -import 'dart:isolate'; -import 'dart:math'; -import 'dart:typed_data'; -import 'dart:ui'; diff --git a/engine/src/flutter/lib/snapshot/snapshot_fuchsia.dart b/engine/src/flutter/lib/snapshot/snapshot_fuchsia.dart deleted file mode 100644 index 5fafa124d8b..00000000000 --- a/engine/src/flutter/lib/snapshot/snapshot_fuchsia.dart +++ /dev/null @@ -1,17 +0,0 @@ -// Copyright 2013 The Flutter Authors. All rights reserved. -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. - -import 'dart:async'; -import 'dart:collection'; -import 'dart:convert'; -import 'dart:core'; -import 'dart:developer'; -import 'dart:fuchsia'; -import 'dart:io'; -import 'dart:isolate'; -import 'dart:math'; -import 'dart:mozart.internal'; -import 'dart:typed_data'; -import 'dart:ui'; -import 'dart:zircon'; diff --git a/engine/src/flutter/lib/ui/natives.dart b/engine/src/flutter/lib/ui/natives.dart index 7da89828c06..2a42a7298b4 100644 --- a/engine/src/flutter/lib/ui/natives.dart +++ b/engine/src/flutter/lib/ui/natives.dart @@ -73,11 +73,3 @@ int _isolateId; Function _getPrintClosure() => _print; @pragma('vm:entry-point') Function _getScheduleMicrotaskClosure() => _scheduleMicrotask; - -// Though the "main" symbol is not included in any of the libraries imported -// above, the builtin library will be included manually during VM setup. This -// symbol is only necessary for precompilation. It is marked as a stanalone -// entry point into the VM. This prevents the precompiler from tree shaking -// away "main". -@pragma('vm:entry-point') -Function _getMainClosure() => main;