mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
[fuchsia] Remove now unsed wrapper for zx_clock_get (flutter/engine#25750)
This commit is contained in:
parent
39caf3500e
commit
2b4b5aefbf
@ -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,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user