Skip to content

Commit

Permalink
Remove commented code.
Browse files Browse the repository at this point in the history
  • Loading branch information
mcourteaux committed Oct 13, 2023
1 parent 87a0bd4 commit 02984f8
Showing 1 changed file with 0 additions and 34 deletions.
34 changes: 0 additions & 34 deletions src/StmtToHTML.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1080,18 +1080,6 @@ class HTMLCodePrinter : public IRVisitor {
context_stack_tags.push_back(tag);
}

/*
void print_opening_tag(const std::string &tag, const std::string &cls, const std::string &tooltip, const std::string &id) {
stream << "<" << tag << " class='" << cls << "'";
if (!tooltip.empty()) {
stream << " title='" << tooltip << "'";
}
stream << " id='";
context_stack.push_back(gen_unique_id());
context_stack_tags.push_back(tag);
}
*/

// Prints the closing tag for the specified html element.
void print_closing_tag(const std::string &tag) {
internal_assert(!context_stack.empty() && tag == context_stack_tags.back())
Expand All @@ -1108,14 +1096,6 @@ class HTMLCodePrinter : public IRVisitor {
print_closing_tag(tag);
}

/*
void print_html_element(const std::string &tag, const std::string &cls, const std::string &body, const std::string &tooltip, const std::string &id) {
print_opening_tag(tag, cls, tooltip, id);
stream << body;
print_closing_tag(tag);
}
*/

void print_opening_brace() {
print_html_element("span", "matched OpeningBrace", "{");
}
Expand Down Expand Up @@ -1242,14 +1222,6 @@ class HTMLCodePrinter : public IRVisitor {
print_closing_tag("span");
}

/*
void print_function_call(std::string fn_name, const std::vector<Expr> &args, int id) {
print_opening_tag("span", "", "fn-call-" + std::to_string(id));
print_function_call(fn_name, args);
print_closing_tag("span");
}
*/

void print_function_call(std::string fn_name, const std::vector<Expr> &args, const std::string &tooltip) {
print_opening_tag("span", "matched");
print_html_element("span", "Symbol matched", fn_name, tooltip);
Expand Down Expand Up @@ -1574,12 +1546,6 @@ class HTMLCodePrinter : public IRVisitor {
}

void visit(const Call *op) override {
/*
int id = gen_node_id(op);
print_opening_tag("span", "Call");
print_function_call(op->name, op->args, id);
print_closing_tag("span");
*/
print_opening_tag("span", "Call");
print_function_call(op->name, op->args, type_to_string(op->type));
print_closing_tag("span");
Expand Down

0 comments on commit 02984f8

Please sign in to comment.