Skip to content

Commit

Permalink
remove further occurances of callback_guard
Browse files Browse the repository at this point in the history
  • Loading branch information
vhdirk committed Jun 24, 2018
1 parent 899ed75 commit 9eb45c6
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/codegen/subclass/virtual_method_body_chunks.rs
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,6 @@ impl Builder {
pub fn generate_object_extern_c_func(&self, env: &Env) -> Chunk {
let mut body = Vec::new();

body.push(self.callback_guard());
body.push(self.floating_reference_guard("gptr"));

body.push(Chunk::Let {
Expand Down Expand Up @@ -245,10 +244,6 @@ impl Builder {
Chunk::Chunks(body)
}

fn callback_guard(&self) -> Chunk {
Chunk::Custom("callback_guard!();".to_owned())
}

fn floating_reference_guard(&self, p: &str) -> Chunk {
Chunk::Custom(format!("floating_reference_guard!({});", p).to_owned())
}
Expand Down Expand Up @@ -288,7 +283,6 @@ impl Builder {

let iface_name = format!("{}_iface", self.object_name.to_lowercase()).to_owned();

body.push(self.callback_guard());
body.push(Chunk::Let {
name: iface_name.clone(),
is_mut: false,
Expand Down

0 comments on commit 9eb45c6

Please sign in to comment.