diff options
author | Joshua Haberman <jhaberman@gmail.com> | 2019-03-27 12:52:33 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-27 12:52:33 -0700 |
commit | 928ef7f2c02f18d9945dd750884dffbdebef1b98 (patch) | |
tree | d3b71619bfa0b8a91854045c01ce8b5cd15ae403 /upb/handlers.c | |
parent | 00f96cb9475228ecacd9be1660f4f8d9d7b24038 (diff) |
Removed reflection and other extraneous things from the core library. (#158)
* Removed reflection and other extraneous things from the core library.
* Added missing files and ran buildifier.
* New CMakeLists.txt.
* Made table its own cc_library() for internal usage.
Diffstat (limited to 'upb/handlers.c')
-rw-r--r-- | upb/handlers.c | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/upb/handlers.c b/upb/handlers.c index 7abf948..a452663 100644 --- a/upb/handlers.c +++ b/upb/handlers.c @@ -368,25 +368,6 @@ bool upb_handlers_getselector(const upb_fielddef *f, upb_handlertype_t type, return true; } -uint32_t upb_handlers_selectorbaseoffset(const upb_fielddef *f) { - return upb_fielddef_isseq(f) ? 2 : 0; -} - -uint32_t upb_handlers_selectorcount(const upb_fielddef *f) { - uint32_t ret = 1; - if (upb_fielddef_isseq(f)) ret += 2; /* STARTSEQ/ENDSEQ */ - if (upb_fielddef_isstring(f)) ret += 2; /* [STRING]/STARTSTR/ENDSTR */ - if (upb_fielddef_issubmsg(f)) { - /* ENDSUBMSG (STARTSUBMSG is at table beginning) */ - ret += 0; - if (upb_fielddef_lazy(f)) { - /* STARTSTR/ENDSTR/STRING (for lazy) */ - ret += 3; - } - } - return ret; -} - /* upb_handlercache ***********************************************************/ struct upb_handlercache { |