From ba038036b4a05017afd6a6b144c762658ae83a35 Mon Sep 17 00:00:00 2001 From: Shai Szulanski Date: Tue, 26 Nov 2024 15:01:20 -0800 Subject: [PATCH] Delete reflect_enum Summary: All callsites removed Reviewed By: createdbysk Differential Revision: D66479596 fbshipit-source-id: fa5176ca314819b1da720f5db669762889bc1e16 --- thrift/lib/cpp2/reflection/reflection.h | 62 ------------------------- 1 file changed, 62 deletions(-) diff --git a/thrift/lib/cpp2/reflection/reflection.h b/thrift/lib/cpp2/reflection/reflection.h index 8858eadb9ea..90a0ba1da54 100644 --- a/thrift/lib/cpp2/reflection/reflection.h +++ b/thrift/lib/cpp2/reflection/reflection.h @@ -1299,68 +1299,6 @@ template using is_reflectable_struct = std:: integral_constant, void>>; -////////////////////////////// -// SECTION: ENUMERATION API // -////////////////////////////// - -/** - * Holds reflection metadata for a given enumeration. - * - * NOTE: this class template is only intended to be instantiated by Thrift. - * Users should ignore the template parameters taken by it and focus simply on - * the members provided. - * - * For the examples below, consider code generated for this Thrift file: - * - * ///////////////////// - * // MyModule.thrift // - * ///////////////////// - * namespace cpp2 My.Namespace - * - * enum MyEnum { - * a, b, c - * } ( - * some.annotation = "some value", - * another.annotation = "another value", - * ) - * - * @author: Marcelo Juchem - */ -template -struct reflected_enum {}; - -/** - * Retrieves reflection metadata (as a `reflected_enum`) associated with the - * given enumeration. - * - * If the given type is not a Thrift enumeration, or if there's no reflection - * metadata available for it, compilation will fail. - * - * See the documentation on `reflected_enum` (above) for more information on - * the returned type. - * - * Example: - * - * ///////////////////// - * // MyModule.thrift // - * ///////////////////// - * namespace cpp2 My.Namespace - * - * enum MyEnum { a, b, c } - * - * ////////////////// - * // whatever.cpp // - * ////////////////// - * using info = reflect_enum; - * - * // yields `MyEnum` - * auto result = info::type; - * - * @author: Marcelo Juchem - */ -template -using reflect_enum = reflected_enum; - ////////////////////////////////// // SECTION: VARIANT (UNION) API // //////////////////////////////////