Revert codegen.rs to the previous version

This commit is contained in:
Siddhangana 2024-12-23 15:05:39 +08:00
parent 7ad72b7eea
commit ef53c7a2cb

View File

@ -102,15 +102,6 @@ impl<'a> ArtiqCodeGenerator<'a> {
} }
} }
/// To resolve class name dynamically - name field is used to obtain class name
pub fn get_class_name(&self) -> Option<String> {
if self.name.is_empty() {
None
} else {
Some(self.name.clone())
}
}
/// If the generator is currently in a direct-`parallel` block context, emits IR that resets the /// If the generator is currently in a direct-`parallel` block context, emits IR that resets the
/// position of the timeline to the initial timeline position before entering the `parallel` /// position of the timeline to the initial timeline position before entering the `parallel`
/// block. /// block.