Remove FileTest::SetIgnoreUnusedAttributes.
This is no longer used. Change-Id: I74bf2ffff5260cdbf1356e8628fa4f9a667217e8 Reviewed-on: https://boringssl-review.googlesource.com/16504 Reviewed-by: Adam Langley <agl@google.com>
This commit is contained in:
committed by
Adam Langley
parent
01f8a8c2d5
commit
dfef2081f3
@@ -81,13 +81,13 @@ static std::pair<std::string, std::string> ParseKeyValue(const char *str, const
|
||||
|
||||
FileTest::ReadResult FileTest::ReadNext() {
|
||||
// If the previous test had unused attributes or instructions, it is an error.
|
||||
if (!unused_attributes_.empty() && !ignore_unused_attributes_) {
|
||||
if (!unused_attributes_.empty()) {
|
||||
for (const std::string &key : unused_attributes_) {
|
||||
PrintLine("Unused attribute: %s", key.c_str());
|
||||
}
|
||||
return kReadError;
|
||||
}
|
||||
if (!unused_instructions_.empty() && !ignore_unused_attributes_) {
|
||||
if (!unused_instructions_.empty()) {
|
||||
for (const std::string &key : unused_instructions_) {
|
||||
PrintLine("Unused instruction: %s", key.c_str());
|
||||
}
|
||||
@@ -372,10 +372,6 @@ void FileTest::InjectInstruction(const std::string &key,
|
||||
instructions_[key] = value;
|
||||
}
|
||||
|
||||
void FileTest::SetIgnoreUnusedAttributes(bool ignore) {
|
||||
ignore_unused_attributes_ = ignore;
|
||||
}
|
||||
|
||||
int FileTestMainSilent(FileTestFunc run_test, void *arg, const char *path) {
|
||||
FileTest t(path);
|
||||
if (!t.is_open()) {
|
||||
|
||||
@@ -162,8 +162,6 @@ class FileTest {
|
||||
// instructions.
|
||||
void InjectInstruction(const std::string &key, const std::string &value);
|
||||
|
||||
void SetIgnoreUnusedAttributes(bool ignore);
|
||||
|
||||
private:
|
||||
void ClearTest();
|
||||
void ClearInstructions();
|
||||
@@ -195,8 +193,6 @@ class FileTest {
|
||||
|
||||
bool is_at_new_instruction_block_ = false;
|
||||
|
||||
bool ignore_unused_attributes_ = false;
|
||||
|
||||
FileTest(const FileTest &) = delete;
|
||||
FileTest &operator=(const FileTest &) = delete;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user