Remove use of dynamic_cast.

PiperOrigin-RevId: 634559729
This commit is contained in:
Francis Tsui
2024-05-16 16:13:13 -07:00
committed by Copybara-Service
parent 1097288e54
commit 5cddd51876
-3
View File
@@ -258,9 +258,6 @@ analytics::proto::SharingLog::AttachmentsInfo* GenerateAllocatedAttachmentInfo(
analytics::proto::SharingLog::WifiCredentialsAttachment::
default_instance()
.New();
wifi_credentials_attachment->set_security_type(
dynamic_cast<WifiCredentialsAttachment*>(attachment.get())
->security_type());
wifi_credentials_attachment->set_source_type(
GetLoggerAttachmentSourceType(attachment->source_type()));
wifi_credentials_attachment->set_batch_id(attachment->batch_id());