remove unused #includes from reflection.h

The functions declared in reflection.h use neither arrays nor maps, so (a) stop including the array and map definitions, and (b) update the handful of other source files which were relying on that transitivity.

PiperOrigin-RevId: 472627278
pull/13171/head
Eric Salo 3 years ago committed by Copybara-Service
parent ba7603b7c1
commit 85534bbb1e
  1. 3
      BUILD
  2. 1
      python/convert.c
  3. 1
      upb/bindings/lua/msg.c
  4. 1
      upb/json_decode.c
  5. 1
      upb/json_encode.c
  6. 1
      upb/reflection.c
  7. 3
      upb/reflection.h
  8. 1
      upb/text_encode.c
  9. 1
      upb/util/BUILD
  10. 1
      upb/util/required_fields.c

@ -412,10 +412,10 @@ cc_library(
copts = UPB_DEFAULT_COPTS,
visibility = ["//visibility:public"],
deps = [
":collections",
":encode_internal",
":port",
":reflection",
":table_internal",
],
)
@ -433,6 +433,7 @@ cc_library(
visibility = ["//visibility:public"],
deps = [
":atoi_internal",
":collections",
":encode_internal",
":port",
":reflection",

@ -29,6 +29,7 @@
#include "python/message.h"
#include "python/protobuf.h"
#include "upb/map.h"
#include "upb/reflection.h"
#include "upb/util/compare.h"

@ -41,6 +41,7 @@
#include "upb/bindings/lua/upb.h"
#include "upb/json_decode.h"
#include "upb/json_encode.h"
#include "upb/map.h"
#include "upb/port_def.inc"
#include "upb/reflection.h"
#include "upb/text_encode.h"

@ -38,6 +38,7 @@
#include "upb/encode.h"
#include "upb/internal/atoi.h"
#include "upb/internal/unicode.h"
#include "upb/map.h"
#include "upb/reflection.h"
// Must be last.

@ -38,6 +38,7 @@
#include "upb/decode.h"
#include "upb/internal/encode.h"
#include "upb/internal/vsnprintf_compat.h"
#include "upb/map.h"
#include "upb/reflection.h"
// Must be last.

@ -30,6 +30,7 @@
#include <string.h>
#include "upb/internal/table.h"
#include "upb/map.h"
#include "upb/msg.h"
#include "upb/port_def.inc"

@ -28,9 +28,8 @@
#ifndef UPB_REFLECTION_H_
#define UPB_REFLECTION_H_
#include "upb/array.h"
#include "upb/def.h"
#include "upb/map.h"
#include "upb/message_value.h"
#include "upb/msg.h"
#include "upb/upb.h"

@ -36,6 +36,7 @@
#include "upb/internal/encode.h"
#include "upb/internal/vsnprintf_compat.h"
#include "upb/map.h"
#include "upb/reflection.h"
// Must be last.

@ -62,6 +62,7 @@ cc_library(
hdrs = ["required_fields.h"],
visibility = ["//visibility:public"],
deps = [
"//:collections",
"//:port",
"//:reflection",
],

@ -33,6 +33,7 @@
#include <stdio.h>
#include "upb/internal/vsnprintf_compat.h"
#include "upb/map.h"
#include "upb/reflection.h"
// Must be last.

Loading…
Cancel
Save