Skip to content

Commit

Permalink
update PHP and Ruby to use the new accessors, delete the old ones
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 493109199
  • Loading branch information
ericsalo authored and Copybara-Service committed Dec 5, 2022
1 parent 1fee6d8 commit 3f1c7f1
Showing 1 changed file with 0 additions and 26 deletions.
26 changes: 0 additions & 26 deletions upb/reflection/message.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3f1c7f1

Please sign in to comment.