Change usage of functions
[platform/core/appfw/pkgmgr-info.git] / src / common / parcel / certinfo_parcelable.cc
index 4417fc1..e386ffe 100644 (file)
@@ -93,14 +93,7 @@ void CertInfoParcelable::ReadCertInfo(tizen_base::Parcel* parcel) {
 }
 
 bool CertInfoParcelable::WritePkgId(tizen_base::Parcel* parcel) {
-  if (pkgid_.empty()) {
-    // what is this for?
-    parcel->WriteBool(true);
-    return true;
-  }
-  // what is this for?
-  parcel->WriteBool(false);
-  WriteString(parcel, pkgid_.c_str());
+  parcel->WriteString(pkgid_);
 
   return true;
 }