Merge "Remove DiffStatus::opaque_diff" am: 0bfb1a674b

Original change: https://android-review.googlesource.com/c/platform/development/+/2328414

Change-Id: I3a7db9c3dba560914e876d13d6ccb2c6b69bf04f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Hsin-Yi Chen
2022-12-06 08:38:01 +00:00
committed by Automerger Merge Worker
2 changed files with 1 additions and 13 deletions

View File

@@ -842,7 +842,7 @@ DiffStatus AbiDiffHelper::CompareAndDumpTypeDiff(
// One of the types were hidden, we cannot compare further.
return AreOpaqueTypesEqual(old_type_id, new_type_id)
? DiffStatus::no_diff
: DiffStatus::opaque_diff;
: DiffStatus::direct_diff;
}
LinkableMessageKind old_kind = old_it->second->GetKind();
@@ -856,16 +856,6 @@ DiffStatus AbiDiffHelper::CompareAndDumpTypeDiff(
}
TypeQueueCheckAndPop(type_queue);
if (diff_policy_options_.consider_opaque_types_different_ &&
diff_status == DiffStatus::opaque_diff) {
// If `-considered-opaque-types-different` is specified and the comparison
// of `referenced_type` results in `opaque_diff`, then check the type name
// at this level.
return (old_it->second->GetName() == new_it->second->GetName() ?
DiffStatus::no_diff : DiffStatus::direct_diff);
}
return diff_status;
}

View File

@@ -38,8 +38,6 @@ enum DiffStatus {
// There was a diff found, however it need not be added as a part of a diff
// message, since it would have already been noted elsewhere.
indirect_diff = 2,
opaque_diff = 3,
};
static inline DiffStatus operator|(DiffStatus f, DiffStatus s) {