Skip to content

Commit 6d2be25

Browse files
authored
CDRIVER-4674 remove unnecessary code from bson-clock.c (#1348)
1 parent d5dfc9f commit 6d2be25

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

src/libbson/src/bson/bson-clock.c

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,6 @@
1414
* limitations under the License.
1515
*/
1616

17-
18-
#ifdef __APPLE__
19-
#include <mach/clock.h>
20-
#include <mach/mach.h>
21-
#include <mach/mach_time.h>
22-
#include <sys/time.h>
23-
#endif
24-
25-
2617
#include "bson-config.h"
2718
#include "bson-compat.h"
2819

@@ -34,7 +25,6 @@
3425

3526
#include "bson-clock.h"
3627

37-
3828
/*
3929
*--------------------------------------------------------------------------
4030
*
@@ -125,9 +115,6 @@ bson_get_monotonic_time (void)
125115
* int64_t to avoid truncation. */
126116
clock_gettime (CLOCK_MONOTONIC, &ts);
127117
return (((int64_t) ts.tv_sec * 1000000) + (ts.tv_nsec / 1000));
128-
#elif defined(__APPLE__)
129-
const uint64_t nsec = clock_gettime_nsec_np (CLOCK_UPTIME_RAW);
130-
return (int64_t) (nsec / 1000u);
131118
#elif defined(_WIN32)
132119
/* Despite it's name, this is in milliseconds! */
133120
int64_t ticks = GetTickCount64 ();

0 commit comments

Comments
 (0)