Skip to content

Commit

Permalink
upb: delete upb::SymbolTable typedef
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 589157104
  • Loading branch information
ericsalo authored and copybara-github committed Dec 8, 2023
1 parent b08e00b commit cca8a7c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
2 changes: 2 additions & 0 deletions upb/reflection/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ bootstrap_cc_library(
"//upb:mem",
"//upb:message",
"//upb:message_value",
"//upb:mini_descriptor",
"//upb:mini_table",
"//upb:port",
],
)
Expand Down
12 changes: 8 additions & 4 deletions upb/reflection/def.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,20 @@
#ifndef UPB_REFLECTION_DEF_HPP_
#define UPB_REFLECTION_DEF_HPP_

#include <stdint.h>

#include <cstring>
#include <memory>
#include <string>
#include <vector>

#include "upb/base/descriptor_constants.h"
#include "upb/base/status.hpp"
#include "upb/base/string_view.h"
#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/internal/def_pool.h"
#include "upb/reflection/internal/enum_def.h"
Expand Down Expand Up @@ -555,9 +562,6 @@ class DefPool {
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 {
return FileDefPtr(upb_FieldDef_File(ptr_));
}
Expand Down

0 comments on commit cca8a7c

Please sign in to comment.