diff --git a/frameworks/ans/src/notification_capsule.cpp b/frameworks/ans/src/notification_capsule.cpp index caf02024c94f2d2772106d024b9bed2264325b17..8cbdb31668a9362e03822c5429ca167c08beca50 100644 --- a/frameworks/ans/src/notification_capsule.cpp +++ b/frameworks/ans/src/notification_capsule.cpp @@ -216,19 +216,6 @@ bool NotificationCapsule::Marshalling(Parcel &parcel) const } } - if (!parcel.WriteInt32(time_)) { - ANS_LOGE("Write time_ fail."); - return false; - } - - parcel.WriteInt32(static_cast(capsuleButton_.size())); - for (const auto& button : capsuleButton_) { - if (!parcel.WriteParcelable(&button)) { - ANS_LOGE("Failed to write card button"); - return false; - } - } - return true; }