aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/chelper/serialqueue.c
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2020-02-14 20:29:04 -0500
committerKevin O'Connor <kevin@koconnor.net>2020-02-20 12:01:21 -0500
commit7b90830ae578544cf6ebe7bdbc70baea1f6b1509 (patch)
tree2dac2b2545bf9360204508198c51dfcb134ed527 /klippy/chelper/serialqueue.c
parent98c7c7603e92d39e2f87b82cb228aeda0b8d9f45 (diff)
downloadkutter-7b90830ae578544cf6ebe7bdbc70baea1f6b1509.tar.gz
kutter-7b90830ae578544cf6ebe7bdbc70baea1f6b1509.tar.xz
kutter-7b90830ae578544cf6ebe7bdbc70baea1f6b1509.zip
serialqueue: Remove unused serialqueue_encode_and_send() function
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'klippy/chelper/serialqueue.c')
-rw-r--r--klippy/chelper/serialqueue.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/klippy/chelper/serialqueue.c b/klippy/chelper/serialqueue.c
index 4bbfd586..61331379 100644
--- a/klippy/chelper/serialqueue.c
+++ b/klippy/chelper/serialqueue.c
@@ -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