update PHP and Ruby to use the new accessors, delete the old ones

PiperOrigin-RevId: 493109199
pull/13171/head
Eric Salo 2 years ago committed by Copybara-Service
parent 1fee6d8327
commit 3f1c7f121b
  1. 26
      upb/reflection/message.h

@ -93,32 +93,6 @@ bool upb_Message_Next(const upb_Message* msg, const upb_MessageDef* m,
bool upb_Message_DiscardUnknown(upb_Message* msg, const upb_MessageDef* m,
int maxdepth);
// DEPRECATED FUNCTIONS
// PHP and Ruby need these until we can version-bump them to the current upb.
UPB_INLINE void upb_Message_Clear(upb_Message* msg, const upb_MessageDef* m) {
return upb_Message_ClearByDef(msg, m);
}
UPB_INLINE void upb_Message_ClearField(upb_Message* msg,
const upb_FieldDef* f) {
return upb_Message_ClearFieldByDef(msg, f);
}
UPB_INLINE bool upb_Message_Has(const upb_Message* msg, const upb_FieldDef* f) {
return upb_Message_HasFieldByDef(msg, f);
}
UPB_INLINE upb_MessageValue upb_Message_Get(const upb_Message* msg,
const upb_FieldDef* f) {
return upb_Message_GetFieldByDef(msg, f);
}
UPB_INLINE bool upb_Message_Set(upb_Message* msg, const upb_FieldDef* f,
upb_MessageValue val, upb_Arena* a) {
return upb_Message_SetFieldByDef(msg, f, val, a);
}
#ifdef __cplusplus
} /* extern "C" */
#endif

Loading…
Cancel
Save