mirror of https://github.com/Desuuuu/klipper.git
serialqueue: Remove unused serialqueue_encode_and_send() function
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
98c7c7603e
commit
7b90830ae5
|
@ -972,22 +972,6 @@ serialqueue_send(struct serialqueue *sq, struct command_queue *cq, uint8_t *msg
|
|||
serialqueue_send_batch(sq, cq, &msgs);
|
||||
}
|
||||
|
||||
// Like serialqueue_send() but also builds the message to be sent
|
||||
void
|
||||
serialqueue_encode_and_send(struct serialqueue *sq, struct command_queue *cq
|
||||
, uint32_t *data, int len
|
||||
, uint64_t min_clock, uint64_t req_clock)
|
||||
{
|
||||
struct queue_message *qm = message_alloc_and_encode(data, len);
|
||||
qm->min_clock = min_clock;
|
||||
qm->req_clock = req_clock;
|
||||
|
||||
struct list_head msgs;
|
||||
list_init(&msgs);
|
||||
list_add_tail(&qm->node, &msgs);
|
||||
serialqueue_send_batch(sq, cq, &msgs);
|
||||
}
|
||||
|
||||
// Return a message read from the serial port (or wait for one if none
|
||||
// available)
|
||||
void __visible
|
||||
|
|
|
@ -55,9 +55,6 @@ void serialqueue_send_batch(struct serialqueue *sq, struct command_queue *cq
|
|||
void serialqueue_send(struct serialqueue *sq, struct command_queue *cq
|
||||
, uint8_t *msg, int len
|
||||
, uint64_t min_clock, uint64_t req_clock);
|
||||
void serialqueue_encode_and_send(
|
||||
struct serialqueue *sq, struct command_queue *cq
|
||||
, uint32_t *data, int len, uint64_t min_clock, uint64_t req_clock);
|
||||
void serialqueue_pull(struct serialqueue *sq, struct pull_queue_message *pqm);
|
||||
void serialqueue_set_baud_adjust(struct serialqueue *sq, double baud_adjust);
|
||||
void serialqueue_set_clock_est(struct serialqueue *sq, double est_freq
|
||||
|
|
Loading…
Reference in New Issue