Skip to content

Commit

Permalink
Clean up dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
dylanmckay committed Dec 3, 2018
1 parent 11d07ae commit 58d7329
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
9 changes: 0 additions & 9 deletions protocol-derive/src/attr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -133,15 +133,6 @@ mod expect {
Ok(list.nested.into_iter().next().unwrap())
}

/// A single word `name(word)`.
pub fn single_word(list: syn::MetaList)
-> Result<syn::Ident, ()> {
single_element(list).and_then(|nested| match nested {
syn::NestedMeta::Meta(syn::Meta::Word(ident)) => Ok(ident),
_ => Err(()),
})
}

/// A single word `name(literal)`.
pub fn single_literal(list: syn::MetaList)
-> Result<syn::Lit, ()> {
Expand Down
1 change: 0 additions & 1 deletion protocol-derive/src/codegen/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,6 @@ fn write_named_fields(fields_named: &syn::FieldsNamed)
-> TokenStream {
let field_writers: Vec<_> = fields_named.named.iter().map(|field| {
let field_name = &field.ident;
let field_ty = &field.ty;
// This field may store the length prefix of another field.
let update_hints = update_hints_after_write(field, &fields_named.named);

Expand Down

0 comments on commit 58d7329

Please sign in to comment.