summaryrefslogtreecommitdiff
path: root/verity/fec/main.cpp
diff options
context:
space:
mode:
authorSami Tolvanen <samitolvanen@google.com>2016-09-01 13:35:17 -0700
committerZheng Zhang <zhzh@google.com>2016-11-10 18:36:12 +0000
commitcace33a52a3b4f7360219bae1f209ebc5d3fadcb (patch)
tree18bd89775aafb8ef1fa5a24fdb1aa6f68e6ee6e6 /verity/fec/main.cpp
parentb91b1cd22919a24cf08cdda196eb9d04167a6fb8 (diff)
downloadextras-cace33a52a3b4f7360219bae1f209ebc5d3fadcb.tar.gz
DO NOT MERGE: fec: remove unused mmap code
Bug: 32789520 Change-Id: If4b32546c6678afaaebffbcf1fbeee17a1879561 (cherrypicked from commit 8bad827700bae35005872f3e6d674c5144fda8ff)
Diffstat (limited to 'verity/fec/main.cpp')
-rw-r--r--verity/fec/main.cpp9
1 files changed, 2 insertions, 7 deletions
diff --git a/verity/fec/main.cpp b/verity/fec/main.cpp
index 50d807e2..8dbb95d1 100644
--- a/verity/fec/main.cpp
+++ b/verity/fec/main.cpp
@@ -105,7 +105,6 @@ static int usage()
" -h show this help\n"
" -v enable verbose logging\n"
" -r, --roots=<bytes> number of parity bytes\n"
- " -m, --mmap use memory mapping\n"
" -j, --threads=<threads> number of threads to use\n"
" -S treat data as a sparse file\n"
"decoding options:\n"
@@ -176,7 +175,7 @@ static int encode(image& ctx, const std::vector<std::string>& inp_filenames,
FATAL("invalid parameters: inplace can only used when decoding\n");
}
- if (!image_load(inp_filenames, &ctx, false)) {
+ if (!image_load(inp_filenames, &ctx)) {
FATAL("failed to read input\n");
}
@@ -222,7 +221,7 @@ static int decode(image& ctx, const std::vector<std::string>& inp_filenames,
}
if (!image_ecc_load(fec_filename, &ctx) ||
- !image_load(inp_filenames, &ctx, !out_filename.empty())) {
+ !image_load(inp_filenames, &ctx)) {
FATAL("failed to read input\n");
}
@@ -281,7 +280,6 @@ int main(int argc, char **argv)
{"sparse", no_argument, 0, 'S'},
{"roots", required_argument, 0, 'r'},
{"inplace", no_argument, 0, 'i'},
- {"mmap", no_argument, 0, 'm'},
{"threads", required_argument, 0, 'j'},
{"print-fec-size", required_argument, 0, 's'},
{"get-ecc-start", required_argument, 0, 'E'},
@@ -317,9 +315,6 @@ int main(int argc, char **argv)
case 'i':
ctx.inplace = true;
break;
- case 'm':
- ctx.mmap = true;
- break;
case 'j':
ctx.threads = (int)parse_arg(optarg, "threads", IMAGE_MAX_THREADS);
break;