Skip to content

Commit 919f366

Browse files
praihanfacebook-github-bot
authored andcommitted
Nuke mustache!
Summary: You won't be missed :) Reviewed By: Mizuchi, Filip-F Differential Revision: D67991665 fbshipit-source-id: 586b29d06caf0920efffdb008beb189dd8d93659
1 parent e83492c commit 919f366

30 files changed

+0
-2241
lines changed

third-party/thrift/src/thrift/compiler/CMakeLists.txt

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -155,12 +155,6 @@ target_link_libraries(
155155
add_library(
156156
mustache
157157
detail/mustache/mstch.cpp
158-
detail/mustache/render_context.cpp
159-
detail/mustache/state/in_section.cpp
160-
detail/mustache/state/outside_section.cpp
161-
detail/mustache/template_type.cpp
162-
detail/mustache/token.cpp
163-
detail/mustache/utils.cpp
164158
)
165159
target_link_libraries(
166160
mustache

third-party/thrift/src/thrift/compiler/detail/mustache/benchmark/mstch_benchmark.cpp

Lines changed: 0 additions & 51 deletions
This file was deleted.

third-party/thrift/src/thrift/compiler/detail/mustache/benchmark/mstch_object_benchmark.cpp

Lines changed: 0 additions & 73 deletions
This file was deleted.

third-party/thrift/src/thrift/compiler/detail/mustache/example/main.cpp

Lines changed: 0 additions & 47 deletions
This file was deleted.

third-party/thrift/src/thrift/compiler/detail/mustache/mstch.cpp

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ SOFTWARE.
3232
#include <limits>
3333
#include <stdexcept>
3434
#include <fmt/core.h>
35-
#include <thrift/compiler/detail/mustache/render_context.h>
3635

3736
namespace apache::thrift::mstch {
3837

@@ -43,18 +42,4 @@ node::node(std::size_t i) : base(static_cast<int>(i)) {
4342
}
4443
}
4544

46-
std::string render(
47-
const std::string& tmplt,
48-
const node& root,
49-
const std::map<std::string, std::string>& partials) {
50-
std::map<std::string, template_type> partial_templates;
51-
for (auto& partial : partials) {
52-
partial_templates.insert({partial.first, {partial.second}});
53-
}
54-
55-
render_context ctx{root, partial_templates};
56-
ctx.render(tmplt);
57-
return std::move(ctx.out);
58-
}
59-
6045
} // namespace apache::thrift::mstch

third-party/thrift/src/thrift/compiler/detail/mustache/mstch.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -171,10 +171,4 @@ using object = internal::object_t<node>;
171171
using map = std::map<const std::string, node>;
172172
using array = std::vector<node>;
173173

174-
std::string render(
175-
const std::string& tmplt,
176-
const node& root,
177-
const std::map<std::string, std::string>& partials =
178-
std::map<std::string, std::string>());
179-
180174
} // namespace apache::thrift::mstch

third-party/thrift/src/thrift/compiler/detail/mustache/render_context.cpp

Lines changed: 0 additions & 101 deletions
This file was deleted.

0 commit comments

Comments
 (0)