Remove dead code
This commit is contained in:
@@ -189,8 +189,6 @@ impl ast::StructDef {
|
||||
|
||||
impl ast::RecordField {
|
||||
pub fn for_field_name(field_name: &ast::NameRef) -> Option<ast::RecordField> {
|
||||
eprintln!("field_name = {}", field_name);
|
||||
dbg!(field_name.syntax().ancestors().nth(6));
|
||||
let candidate =
|
||||
field_name.syntax().parent().and_then(ast::RecordField::cast).or_else(|| {
|
||||
field_name.syntax().ancestors().nth(4).and_then(ast::RecordField::cast)
|
||||
|
||||
Reference in New Issue
Block a user