summaryrefslogtreecommitdiff
path: root/upb/msgfactory.c
diff options
context:
space:
mode:
authorJoshua Haberman <jhaberman@gmail.com>2018-12-20 09:53:13 -0800
committerJoshua Haberman <jhaberman@gmail.com>2018-12-20 09:53:13 -0800
commit8afe0b03a349cc259fb731ff2d2e0a13e47c166a (patch)
tree65979d391852682c5572a2d93c6534da67e7d7ec /upb/msgfactory.c
parent549a828f76bfbc42276797ca5eef2c1f730b0d1f (diff)
Some fixes for Ruby.
Diffstat (limited to 'upb/msgfactory.c')
-rw-r--r--upb/msgfactory.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/upb/msgfactory.c b/upb/msgfactory.c
index 73347b8..63df49e 100644
--- a/upb/msgfactory.c
+++ b/upb/msgfactory.c
@@ -46,15 +46,6 @@ static uint8_t upb_msg_fielddefsize(const upb_fielddef *f) {
}
}
-static bool upb_fielddef_haspresence(const upb_fielddef *f) {
- if (upb_fielddef_isseq(f)) return false;
- if (upb_fielddef_issubmsg(f)) return true;
-
- /* Primitive field: return true unless there is a message that specifies
- * presence should not exist. */
- return upb_msgdef_syntax(upb_fielddef_containingtype(f)) == UPB_SYNTAX_PROTO2;
-}
-
/** upb_msglayout *************************************************************/
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback