From 5cddd518762a424a3d33898bd69a6f8855cbdfd8 Mon Sep 17 00:00:00 2001 From: Francis Tsui Date: Thu, 16 May 2024 16:11:32 -0700 Subject: [PATCH] Remove use of dynamic_cast. PiperOrigin-RevId: 634559729 --- sharing/analytics/analytics_recorder.cc | 3 --- 1 file changed, 3 deletions(-) diff --git a/sharing/analytics/analytics_recorder.cc b/sharing/analytics/analytics_recorder.cc index 186877df..7cc0b719 100644 --- a/sharing/analytics/analytics_recorder.cc +++ b/sharing/analytics/analytics_recorder.cc @@ -258,9 +258,6 @@ analytics::proto::SharingLog::AttachmentsInfo* GenerateAllocatedAttachmentInfo( analytics::proto::SharingLog::WifiCredentialsAttachment:: default_instance() .New(); - wifi_credentials_attachment->set_security_type( - dynamic_cast(attachment.get()) - ->security_type()); wifi_credentials_attachment->set_source_type( GetLoggerAttachmentSourceType(attachment->source_type())); wifi_credentials_attachment->set_batch_id(attachment->batch_id());