diff --git a/ci/licenses_golden/licenses_flutter b/ci/licenses_golden/licenses_flutter index cb29952e3d5a4..844001143395e 100644 --- a/ci/licenses_golden/licenses_flutter +++ b/ci/licenses_golden/licenses_flutter @@ -1168,9 +1168,6 @@ FILE: ../../../flutter/third_party/tonic/logging/dart_invoke.cc FILE: ../../../flutter/third_party/tonic/logging/dart_invoke.h FILE: ../../../flutter/third_party/tonic/parsers/packages_map.cc FILE: ../../../flutter/third_party/tonic/parsers/packages_map.h -FILE: ../../../flutter/third_party/tonic/platform/platform_utils.h -FILE: ../../../flutter/third_party/tonic/platform/platform_utils_posix.cc -FILE: ../../../flutter/third_party/tonic/platform/platform_utils_win.cc FILE: ../../../flutter/third_party/tonic/scopes/dart_api_scope.h FILE: ../../../flutter/third_party/tonic/scopes/dart_isolate_scope.cc FILE: ../../../flutter/third_party/tonic/scopes/dart_isolate_scope.h diff --git a/third_party/tonic/BUILD.gn b/third_party/tonic/BUILD.gn index b51517a63948f..4114ac4da6214 100644 --- a/third_party/tonic/BUILD.gn +++ b/third_party/tonic/BUILD.gn @@ -39,7 +39,6 @@ source_set("tonic") { "converter", "file_loader", "logging", - "platform", "scopes", "typed_data", "//third_party/dart/runtime:dart_api", diff --git a/third_party/tonic/file_loader/BUILD.gn b/third_party/tonic/file_loader/BUILD.gn index 2812a5bf4d982..e350a447c438f 100644 --- a/third_party/tonic/file_loader/BUILD.gn +++ b/third_party/tonic/file_loader/BUILD.gn @@ -25,7 +25,6 @@ source_set("file_loader") { "../converter", "../filesystem", "../parsers", - "../platform", "//third_party/dart/runtime:dart_api", ] } diff --git a/third_party/tonic/file_loader/file_loader.cc b/third_party/tonic/file_loader/file_loader.cc index 1cbff502074fe..88cc9343c76fa 100644 --- a/third_party/tonic/file_loader/file_loader.cc +++ b/third_party/tonic/file_loader/file_loader.cc @@ -14,7 +14,6 @@ #include "tonic/common/macros.h" #include "tonic/converter/dart_converter.h" #include "tonic/parsers/packages_map.h" -#include "tonic/platform/platform_utils.h" namespace tonic { namespace { diff --git a/third_party/tonic/platform/BUILD.gn b/third_party/tonic/platform/BUILD.gn deleted file mode 100644 index 48c9f60604f43..0000000000000 --- a/third_party/tonic/platform/BUILD.gn +++ /dev/null @@ -1,25 +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. - -source_set("platform") { - visibility = [ "../*" ] - - configs += [ "../:config" ] - - if (is_win) { - set_sources_assignment_filter([ "*_posix.cc" ]) - } else { - set_sources_assignment_filter([ "*_win.cc" ]) - } - - deps = [ - "../common", - ] - - sources = [ - "platform_utils.h", - "platform_utils_posix.cc", - "platform_utils_win.cc", - ] -} diff --git a/third_party/tonic/platform/platform_utils.h b/third_party/tonic/platform/platform_utils.h deleted file mode 100644 index 637d4f31b7318..0000000000000 --- a/third_party/tonic/platform/platform_utils.h +++ /dev/null @@ -1,15 +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. - -#ifndef LIB_TONIC_PLATFORM_UTILS_H_ -#define LIB_TONIC_PLATFORM_UTILS_H_ - -namespace tonic { - -// Calls the equivalent of exit(status) for a given platform. -void PlatformExit(int status); - -} // namespace tonic - -#endif // LIB_TONIC_PLATFORM_UTILS_H_ diff --git a/third_party/tonic/platform/platform_utils_posix.cc b/third_party/tonic/platform/platform_utils_posix.cc deleted file mode 100644 index 630eafad70df4..0000000000000 --- a/third_party/tonic/platform/platform_utils_posix.cc +++ /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. - -#include -#include "platform_utils.h" - -namespace tonic { - -void PlatformExit(int status) { - exit(status); -} - -} // namespace tonic diff --git a/third_party/tonic/platform/platform_utils_win.cc b/third_party/tonic/platform/platform_utils_win.cc deleted file mode 100644 index 49b3b3a9b4af1..0000000000000 --- a/third_party/tonic/platform/platform_utils_win.cc +++ /dev/null @@ -1,15 +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. - -#include "platform_utils.h" - -#include - -namespace tonic { - -void PlatformExit(int status) { - ::ExitProcess(status); -} - -} // namespace tonic