mirror of
https://github.com/open-goal/jak-project
synced 2026-07-12 07:38:53 -04:00
format and debug print remove
This commit is contained in:
@@ -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());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user