From 57fbb25fdeb29c3d70f87bed1e0041e233109c8a Mon Sep 17 00:00:00 2001 From: Pranjal Raihan Date: Fri, 17 Jan 2025 16:27:44 -0800 Subject: [PATCH] Remove HTML generator Summary: It doesn't even work (always crashes) Reviewed By: thedavekwon, vitaut Differential Revision: D68342475 fbshipit-source-id: 67530abb6b65c2677075f36bba9a20f22d611fbf --- .../generate/t_mstch_html_generator.cc | 36 ----------- .../templates/html/index.html.mustache | 59 ------------------- 2 files changed, 95 deletions(-) delete mode 100644 third-party/thrift/src/thrift/compiler/generate/t_mstch_html_generator.cc delete mode 100644 third-party/thrift/src/thrift/compiler/generate/templates/html/index.html.mustache diff --git a/third-party/thrift/src/thrift/compiler/generate/t_mstch_html_generator.cc b/third-party/thrift/src/thrift/compiler/generate/t_mstch_html_generator.cc deleted file mode 100644 index 491bc3afa62f0e..00000000000000 --- a/third-party/thrift/src/thrift/compiler/generate/t_mstch_html_generator.cc +++ /dev/null @@ -1,36 +0,0 @@ -/* - * Copyright (c) Meta Platforms, Inc. and affiliates. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -namespace apache::thrift::compiler { - -class t_mstch_html_generator : public t_mstch_generator { - public: - using t_mstch_generator::t_mstch_generator; - - std::string template_prefix() const override { return "html"; } - - void generate_program() override { - out_dir_base_ = "gen-mstch_html"; - // Generate index.html. - render_to_file(*this->get_program(), "index.html", "index.html"); - } -}; - -THRIFT_REGISTER_GENERATOR(mstch_html, "HTML", ""); - -} // namespace apache::thrift::compiler diff --git a/third-party/thrift/src/thrift/compiler/generate/templates/html/index.html.mustache b/third-party/thrift/src/thrift/compiler/generate/templates/html/index.html.mustache deleted file mode 100644 index 94b4041f3d2914..00000000000000 --- a/third-party/thrift/src/thrift/compiler/generate/templates/html/index.html.mustache +++ /dev/null @@ -1,59 +0,0 @@ -{{! - - Copyright (c) Meta Platforms, Inc. and affiliates. - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - -}} - - - - - Thrift Declarations in {{program:name}} - - - -

Thrift Declarations

- -

Structs

- {{#program:structs}} -

{{struct:name}}

- -

Fields

- -
- {{/program:structs}} - -

Services

- {{#program:services}} -

{{service:name}}

- -

Functions

- - - {{/program:services}} - - -