Skip to content

Commit

Permalink
remove does_interpreter_exist
Browse files Browse the repository at this point in the history
  • Loading branch information
lastmjs committed Apr 1, 2024
1 parent 992a5a7 commit 761a0d5
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 21 deletions.
6 changes: 1 addition & 5 deletions examples/inspect_message/src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,7 @@
def inspect_message_() -> void:
ic.print("inspect_message called")

if (
ic.method_name() == "accessible"
or ic.method_name() == "does_interpreter_exist"
or ic.method_name() == "__get_candid_interface_tmp_hack"
):
if ic.method_name() == "accessible":
ic.accept_message()
return

Expand Down
13 changes: 0 additions & 13 deletions kybra/compiler/kybra_generate/src/body/does_interpreter_exist.rs

This file was deleted.

3 changes: 0 additions & 3 deletions kybra/compiler/kybra_generate/src/body/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ use crate::{ic_object, stable_b_tree_map_nodes::rust, StableBTreeMapNode};

mod async_result_handler;
mod call_global_python_function;
mod does_interpreter_exist;
mod unwrap_rust_python_result;
mod utils;

Expand All @@ -20,7 +19,6 @@ pub fn generate(
) -> TokenStream {
let async_result_handler = async_result_handler::generate(&services);
let call_global_python_function = call_global_python_function::generate();
let does_interpreter_exist = does_interpreter_exist::generate();
let ic_object = ic_object::generate(
update_methods,
query_methods,
Expand All @@ -34,7 +32,6 @@ pub fn generate(
quote::quote! {
#async_result_handler
#call_global_python_function
#does_interpreter_exist
#ic_object
#stable_b_tree_map
#unwrap_rust_python_result
Expand Down

0 comments on commit 761a0d5

Please sign in to comment.