format and debug print remove

This commit is contained in:
water
2023-09-23 14:42:30 -04:00
parent fff99dbd4b
commit 83c095ab99
3 changed files with 2 additions and 6 deletions
@@ -3920,9 +3920,6 @@ void FunctionCallElement::update_from_stack(const Env& env,
arg_forms.at(1)->to_string(env) == std::to_string(state_info.id)) {
new_form = pool.alloc_element<GenericElement>(
GenericOperator::make_function(pool.form<ConstantTokenElement>("find-parent-state")));
} else {
printf("BAD match [%s] [%s]\n", arg_forms.at(0)->to_string(env).c_str(),
arg_forms.at(1)->to_string(env).c_str());
}
}
}
-1
View File
@@ -2511,7 +2511,6 @@ void CallOp::propagate_types2(types2::Instruction& instr,
bool use_normal_last_arg = true;
if (in_tp.kind == TP_Type::Kind::FIND_PARENT_METHOD_FUNCTION) {
printf("in for %s\n", env.func->name().c_str());
bool can_use_call_parent = true;
TypeSpec call_parent_result_type;
const auto& guessed_name = env.func->guessed_name;
+2 -2
View File
@@ -29,8 +29,8 @@ LSPRoute::LSPRoute(std::function<std::optional<json>(Workspace&, int, json)> req
: m_route_type(LSPRouteType::REQUEST_RESPONSE), m_request_handler(request_handler) {}
void LSPRouter::init_routes() {
m_routes["shutdown"] =
LSPRoute([](Workspace& /*workspace*/, int /*id*/, nlohmann::json /*params*/) -> std::optional<json> {
m_routes["shutdown"] = LSPRoute(
[](Workspace& /*workspace*/, int /*id*/, nlohmann::json /*params*/) -> std::optional<json> {
lg::info("Shutting down LSP due to explicit request");
exit(0);
});