summaryrefslogtreecommitdiff
path: root/src/upb_def.h
diff options
context:
space:
mode:
authorJoshua Haberman <joshua@reverberate.org>2009-12-21 10:48:01 -0800
committerJoshua Haberman <joshua@reverberate.org>2009-12-21 10:48:01 -0800
commitc2419764856e5666bfa9e3c1b87de29ec93babe1 (patch)
tree7771bf0bbcf9b1103a55b963831385b07705b739 /src/upb_def.h
parentc6cba2af37638cc47ff69aed866669567ef365d9 (diff)
In the midst of a major refactoring.
Diffstat (limited to 'src/upb_def.h')
-rw-r--r--src/upb_def.h15
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.
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback