diff options
author | Joshua Haberman <joshua@reverberate.org> | 2009-12-21 10:48:01 -0800 |
---|---|---|
committer | Joshua Haberman <joshua@reverberate.org> | 2009-12-21 10:48:01 -0800 |
commit | c2419764856e5666bfa9e3c1b87de29ec93babe1 (patch) | |
tree | 7771bf0bbcf9b1103a55b963831385b07705b739 /src/upb_def.h | |
parent | c6cba2af37638cc47ff69aed866669567ef365d9 (diff) |
In the midst of a major refactoring.
Diffstat (limited to 'src/upb_def.h')
-rw-r--r-- | src/upb_def.h | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/src/upb_def.h b/src/upb_def.h index 0d497a4..87c2be8 100644 --- a/src/upb_def.h +++ b/src/upb_def.h @@ -156,21 +156,6 @@ INLINE bool upb_elem_ismm(struct upb_fielddef *f) { return upb_isstring(f) || upb_issubmsg(f); } -/* Defined iff upb_field_ismm(f). */ -INLINE upb_mm_ptrtype upb_field_ptrtype(struct upb_fielddef *f) { - if(upb_isarray(f)) return UPB_MM_ARR_REF; - else if(upb_isstring(f)) return UPB_MM_STR_REF; - else if(upb_issubmsg(f)) return UPB_MM_MSG_REF; - else return -1; -} - -/* Defined iff upb_elem_ismm(f). */ -INLINE upb_mm_ptrtype upb_elem_ptrtype(struct upb_fielddef *f) { - if(upb_isstring(f)) return UPB_MM_STR_REF; - else if(upb_issubmsg(f)) return UPB_MM_MSG_REF; - else return -1; -} - // Internal-only interface for the upb compiler. // Sorts the given fielddefs in-place, according to what we think is an optimal // ordering of fields. This can change from upb release to upb release. |