Skip to content

Commit

Permalink
Nuke mustache!
Browse files Browse the repository at this point in the history
Summary: You won't be missed :)

Reviewed By: Mizuchi, Filip-F

Differential Revision: D67991665

fbshipit-source-id: 586b29d06caf0920efffdb008beb189dd8d93659
  • Loading branch information
praihan authored and facebook-github-bot committed Jan 13, 2025
1 parent e83492c commit 919f366
Show file tree
Hide file tree
Showing 30 changed files with 0 additions and 2,241 deletions.
6 changes: 0 additions & 6 deletions third-party/thrift/src/thrift/compiler/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -155,12 +155,6 @@ target_link_libraries(
add_library(
mustache
detail/mustache/mstch.cpp
detail/mustache/render_context.cpp
detail/mustache/state/in_section.cpp
detail/mustache/state/outside_section.cpp
detail/mustache/template_type.cpp
detail/mustache/token.cpp
detail/mustache/utils.cpp
)
target_link_libraries(
mustache
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

15 changes: 0 additions & 15 deletions third-party/thrift/src/thrift/compiler/detail/mustache/mstch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ SOFTWARE.
#include <limits>
#include <stdexcept>
#include <fmt/core.h>
#include <thrift/compiler/detail/mustache/render_context.h>

namespace apache::thrift::mstch {

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

std::string render(
const std::string& tmplt,
const node& root,
const std::map<std::string, std::string>& partials) {
std::map<std::string, template_type> partial_templates;
for (auto& partial : partials) {
partial_templates.insert({partial.first, {partial.second}});
}

render_context ctx{root, partial_templates};
ctx.render(tmplt);
return std::move(ctx.out);
}

} // namespace apache::thrift::mstch
Original file line number Diff line number Diff line change
Expand Up @@ -171,10 +171,4 @@ using object = internal::object_t<node>;
using map = std::map<const std::string, node>;
using array = std::vector<node>;

std::string render(
const std::string& tmplt,
const node& root,
const std::map<std::string, std::string>& partials =
std::map<std::string, std::string>());

} // namespace apache::thrift::mstch

This file was deleted.

Loading

0 comments on commit 919f366

Please sign in to comment.