Commit dce94188 authored by Alessandro Rubini's avatar Alessandro Rubini

trivial: remove assign_TimeInternal

Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
parent a87987c6
......@@ -361,7 +361,6 @@ extern int msg_issue_pdelay_resp_follow_up(struct pp_instance *ppi,
extern void int64_to_TimeInternal(Integer64 bigint, TimeInternal *internal);
extern int from_TimeInternal(TimeInternal *internal, Timestamp *external);
extern int to_TimeInternal(TimeInternal *internal, Timestamp *external);
extern void assign_TimeInternal(TimeInternal *to, TimeInternal *from);
extern void add_TimeInternal(TimeInternal *r, TimeInternal *x, TimeInternal *y);
extern void sub_TimeInternal(TimeInternal *r, TimeInternal *x, TimeInternal *y);
extern void set_TimeInternal(TimeInternal *t, Integer32 s, Integer32 ns);
......
......@@ -106,17 +106,6 @@ void set_TimeInternal(TimeInternal *t, Integer32 s, Integer32 ns)
t->nanoseconds = ns;
}
void assign_TimeInternal(TimeInternal *to, TimeInternal *from)
{
to->seconds = from->seconds;
to->nanoseconds = from->nanoseconds;
to->phase = from->phase;
to->correct = from->correct;
to->raw_phase = from->raw_phase;
to->raw_nsec = from->raw_nsec;
to->raw_ahead = from->raw_ahead;
}
void display_TimeInternal(const char *label, TimeInternal *t)
{
PP_VPRINTF("%s: %s%d.%09d \n", label,
......
......@@ -42,8 +42,7 @@ int st_com_execute_slave(struct pp_instance *ppi, int check_delayreq)
ret = msg_issue_delay_req(ppi);
assign_TimeInternal(&ppi->delay_req_send_time,
&ppi->last_snt_time);
ppi->delay_req_send_time = ppi->last_snt_time;
/* Add latency */
add_TimeInternal(&ppi->delay_req_send_time,
......@@ -208,7 +207,7 @@ int st_com_slave_handle_sync(struct pp_instance *ppi, unsigned char *buf,
time = &ppi->last_rcv_time;
if (ppi->is_from_cur_par) {
assign_TimeInternal(&ppi->sync_receive_time, time);
ppi->sync_receive_time = *time;
/* FIXME diag to file? will we ever handle it?
if (OPTS(ppi)->recordFP)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment