Skip to content

Commit 715e620

Browse files
committed
Remove unused functions
1 parent aa81a0b commit 715e620

File tree

1 file changed

+0
-38
lines changed

1 file changed

+0
-38
lines changed

src/mongoc/mongoc-topology.c

Lines changed: 0 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -269,44 +269,6 @@ mongoc_topology_destroy (mongoc_topology_t *topology)
269269
bson_free(topology);
270270
}
271271

272-
/*
273-
*--------------------------------------------------------------------------
274-
*
275-
* _mongoc_topology_time_to_scan --
276-
*
277-
* Returns true if it is time to scan the cluster again.
278-
*
279-
*--------------------------------------------------------------------------
280-
*/
281-
static bool
282-
_mongoc_topology_time_to_scan (mongoc_topology_t *topology) {
283-
return bson_get_monotonic_time () - topology->last_scan >=
284-
topology->heartbeat_msec * 1000;
285-
}
286-
287-
/*
288-
*--------------------------------------------------------------------------
289-
*
290-
* _mongoc_topology_min_heartbeat_from_now --
291-
*
292-
* How long until we're allowed to rescan, in microseconds.
293-
*
294-
* Server Discovery And Monitoring Spec: "If a client frequently
295-
* rechecks a server, it MUST wait at least minHeartbeatFrequencyMS
296-
* milliseconds since the previous check to avoid pointless effort.
297-
* This value MUST be 500 ms, and it MUST NOT be configurable."
298-
*
299-
*--------------------------------------------------------------------------
300-
*/
301-
static int64_t
302-
_mongoc_topology_min_heartbeat_from_now (mongoc_topology_t *topology,
303-
int64_t now)
304-
{
305-
int64_t next_scan = topology->last_scan
306-
+ MONGOC_TOPOLOGY_MIN_HEARTBEAT_FREQUENCY_MS * 1000;
307-
return next_scan - now;
308-
}
309-
310272
/*
311273
*--------------------------------------------------------------------------
312274
*

0 commit comments

Comments
 (0)