libziparchive: remove now-unused StartIteration overload.
Bug: http://b/129068177 Test: treehugger Change-Id: If494c3031aee2bd3e72eda57de4c334f11f5a5df
This commit is contained in:
parent
9426110d37
commit
13a45c01f2
2 changed files with 0 additions and 19 deletions
|
|
@ -180,9 +180,6 @@ int32_t FindEntry(const ZipArchiveHandle archive, const std::string_view entryNa
|
|||
int32_t StartIteration(ZipArchiveHandle archive, void** cookie_ptr,
|
||||
const std::string_view optional_prefix = "",
|
||||
const std::string_view optional_suffix = "");
|
||||
// TODO: remove this.
|
||||
int32_t StartIteration(ZipArchiveHandle archive, void** cookie_ptr,
|
||||
const ZipString* optional_prefix, const ZipString* optional_suffix);
|
||||
|
||||
/*
|
||||
* Advance to the next element in the zipfile in iteration order.
|
||||
|
|
|
|||
|
|
@ -726,22 +726,6 @@ int32_t StartIteration(ZipArchiveHandle archive, void** cookie_ptr,
|
|||
return 0;
|
||||
}
|
||||
|
||||
// TODO: remove this.
|
||||
int32_t StartIteration(ZipArchiveHandle archive, void** cookie_ptr,
|
||||
const ZipString* optional_prefix, const ZipString* optional_suffix) {
|
||||
std::string prefix;
|
||||
if (optional_prefix) {
|
||||
prefix = std::string(reinterpret_cast<const char*>(optional_prefix->name),
|
||||
optional_prefix->name_length);
|
||||
}
|
||||
std::string suffix;
|
||||
if (optional_suffix) {
|
||||
suffix = std::string(reinterpret_cast<const char*>(optional_suffix->name),
|
||||
optional_suffix->name_length);
|
||||
}
|
||||
return StartIteration(archive, cookie_ptr, prefix.c_str(), suffix.c_str());
|
||||
}
|
||||
|
||||
void EndIteration(void* cookie) {
|
||||
delete reinterpret_cast<IterationHandle*>(cookie);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue