summaryrefslogtreecommitdiff
path: root/include/consumer.h
diff options
context:
space:
mode:
authorNicolas Boichat <drinkcat@chromium.org>2017-12-14 13:32:43 +0800
committerchrome-bot <chrome-bot@chromium.org>2017-12-18 20:32:58 -0800
commitbbb40ce21d7a972c812621091390a994c6fce4b6 (patch)
treec4dd22d3473e7324a62bf00cf975721c432b264a /include/consumer.h
parent6aa967e4bbbdf28e0d9f5e537ccf4cbd76665b68 (diff)
downloadchrome-ec-bbb40ce21d7a972c812621091390a994c6fce4b6.tar.gz
consumer: Remove flush operation
Nobody is calling the flush function for consumer_ops structure, so let's remove it to save flash space, until we find a use for it. CQ-DEPEND=CL:*529221 BRANCH=none BUG=chromium:795624 TEST=make buildall -j, saves from 40 to 128 bytes on some boards. Change-Id: Iad18b30f419ccebc54a90914ec46da84b8d19601 Signed-off-by: Nicolas Boichat <drinkcat@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/826905 Reviewed-by: Randall Spangler <rspangler@chromium.org> Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
Diffstat (limited to 'include/consumer.h')
-rw-r--r--include/consumer.h6
1 files changed, 0 insertions, 6 deletions
diff --git a/include/consumer.h b/include/consumer.h
index e66d2e769e..f6d164649e 100644
--- a/include/consumer.h
+++ b/include/consumer.h
@@ -27,12 +27,6 @@ struct consumer_ops {
* no need for this information it can set this to NULL.
*/
void (*written)(struct consumer const *consumer, size_t count);
-
- /*
- * Flush (read) everything from the associated queue. This call blocks
- * until the consumer has flushed the queue.
- */
- void (*flush)(struct consumer const *consumer);
};
struct consumer {