aboutsummaryrefslogtreecommitdiffstats
path: root/flashrom.c
diff options
context:
space:
mode:
Diffstat (limited to 'flashrom.c')
-rw-r--r--flashrom.c27
1 files changed, 0 insertions, 27 deletions
diff --git a/flashrom.c b/flashrom.c
index d438053a..e529249b 100644
--- a/flashrom.c
+++ b/flashrom.c
@@ -871,33 +871,6 @@ notfound:
}
/**
- * @brief Writes content from buffer to one or more files.
- *
- * Writes content from supplied buffer to files. If a filename is specified for
- * individual regions using the partial read syntax ('-i <region>[:<filename>]')
- * then this will write files using data from the corresponding region in the
- * supplied buffer.
- *
- * @param layout The layout to be used.
- * @param buf Chip-sized buffer to read data from
- * @return 0 on success
- */
-int write_buf_to_include_args(const struct flashrom_layout *const layout, unsigned char *buf)
-{
- const struct romentry *entry = NULL;
-
- while ((entry = layout_next_included(layout, entry))) {
- if (!entry->file)
- continue;
- if (write_buf_to_file(buf + entry->start,
- entry->end - entry->start + 1, entry->file))
- return 1;
- }
-
- return 0;
-}
-
-/**
* @brief Reads the included layout regions into a buffer.
*
* If there is no layout set in the given flash context, the whole chip will