upb: delete upb::SymbolTable typedef

PiperOrigin-RevId: 589157104
pull/14984/head
Eric Salo 1 year ago committed by Copybara-Service
parent b08e00bdb1
commit cca8a7cc23
  1. 2
      upb/reflection/BUILD
  2. 12
      upb/reflection/def.hpp

@ -65,6 +65,8 @@ bootstrap_cc_library(
"//upb:mem", "//upb:mem",
"//upb:message", "//upb:message",
"//upb:message_value", "//upb:message_value",
"//upb:mini_descriptor",
"//upb:mini_table",
"//upb:port", "//upb:port",
], ],
) )

@ -8,13 +8,20 @@
#ifndef UPB_REFLECTION_DEF_HPP_ #ifndef UPB_REFLECTION_DEF_HPP_
#define UPB_REFLECTION_DEF_HPP_ #define UPB_REFLECTION_DEF_HPP_
#include <stdint.h>
#include <cstring> #include <cstring>
#include <memory> #include <memory>
#include <string> #include <string>
#include <vector>
#include "upb/base/descriptor_constants.h"
#include "upb/base/status.hpp" #include "upb/base/status.hpp"
#include "upb/base/string_view.h"
#include "upb/mem/arena.hpp" #include "upb/mem/arena.hpp"
#include "upb/mini_descriptor/decode.h"
#include "upb/mini_table/enum.h"
#include "upb/mini_table/field.h"
#include "upb/mini_table/message.h"
#include "upb/reflection/def.h" #include "upb/reflection/def.h"
#include "upb/reflection/internal/def_pool.h" #include "upb/reflection/internal/def_pool.h"
#include "upb/reflection/internal/enum_def.h" #include "upb/reflection/internal/enum_def.h"
@ -555,9 +562,6 @@ class DefPool {
std::unique_ptr<upb_DefPool, decltype(&upb_DefPool_Free)> ptr_; std::unique_ptr<upb_DefPool, decltype(&upb_DefPool_Free)> ptr_;
}; };
// TODO: This typedef is deprecated. Delete it.
using SymbolTable = DefPool;
inline FileDefPtr FieldDefPtr::file() const { inline FileDefPtr FieldDefPtr::file() const {
return FileDefPtr(upb_FieldDef_File(ptr_)); return FileDefPtr(upb_FieldDef_File(ptr_));
} }

Loading…
Cancel
Save