未验证 提交 aebaf552 编写于 作者: J Jody Sankey 提交者: GitHub

[fuchsia] Remove now unsed wrapper for zx_clock_get (#25750)

上级 bf5df7f2
......@@ -190,7 +190,6 @@ class System extends NativeFieldWrapperClass2 {
// Time operations.
static int clockGetMonotonic() native 'System_ClockGetMonotonic';
static int clockGet(int clockId) native 'System_ClockGet';
// TODO(edcoyne): Remove this, it is required to safely do an API transition across repos.
static int reboot() { return -2; /*ZX_ERR_NOT_SUPPORTED*/ }
......
......@@ -463,12 +463,6 @@ uint64_t System::ClockGetMonotonic() {
return zx_clock_get_monotonic();
}
uint64_t System::ClockGet(uint32_t clock_id) {
zx_time_t result = 0;
zx_clock_get(clock_id, &result);
return result;
}
// clang-format: off
#define FOR_EACH_STATIC_BINDING(V) \
......@@ -488,8 +482,7 @@ uint64_t System::ClockGet(uint32_t clock_id) {
V(System, VmoRead) \
V(System, VmoWrite) \
V(System, VmoMap) \
V(System, ClockGetMonotonic) \
V(System, ClockGet)
V(System, ClockGetMonotonic)
// clang-format: on
......
......@@ -63,8 +63,6 @@ class System : public fml::RefCountedThreadSafe<System>,
static uint64_t ClockGetMonotonic();
static uint64_t ClockGet(uint32_t clock_id);
static void RegisterNatives(tonic::DartLibraryNatives* natives);
static zx_status_t ConnectToService(std::string path,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册