Remove tonic/platform. (flutter/engine#16062)

This is unused.
This commit is contained in:
Chinmay Garde
2020-01-27 14:41:15 -08:00
committed by GitHub
parent ef31000576
commit 5defd058a9
8 changed files with 0 additions and 75 deletions

View File

@@ -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

View File

@@ -39,7 +39,6 @@ source_set("tonic") {
"converter",
"file_loader",
"logging",
"platform",
"scopes",
"typed_data",
"//third_party/dart/runtime:dart_api",

View File

@@ -25,7 +25,6 @@ source_set("file_loader") {
"../converter",
"../filesystem",
"../parsers",
"../platform",
"//third_party/dart/runtime:dart_api",
]
}

View File

@@ -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 {

View File

@@ -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",
]
}

View File

@@ -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_

View File

@@ -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 <cstdlib>
#include "platform_utils.h"
namespace tonic {
void PlatformExit(int status) {
exit(status);
}
} // namespace tonic

View File

@@ -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 <windows.h>
namespace tonic {
void PlatformExit(int status) {
::ExitProcess(status);
}
} // namespace tonic