aboutsummaryrefslogtreecommitdiffstats
path: root/klippy
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
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')
-rw-r--r--klippy/chelper/serialqueue.c16
-rw-r--r--klippy/chelper/serialqueue.h3
2 files changed, 0 insertions, 19 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
diff --git a/klippy/chelper/serialqueue.h b/klippy/chelper/serialqueue.h
index aa51df40..807e9883 100644
--- a/klippy/chelper/serialqueue.h
+++ b/klippy/chelper/serialqueue.h
@@ -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