summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/codegen/dyngen.rs7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/codegen/dyngen.rs b/src/codegen/dyngen.rs
index de9e0f98..59b8b3ca 100644
--- a/src/codegen/dyngen.rs
+++ b/src/codegen/dyngen.rs
@@ -5,11 +5,6 @@ use proc_macro2::Ident;
/// Used to build the output tokens for dynamic bindings.
#[derive(Default)]
pub struct DynamicItems {
- /// Tracks whether or not we contain any required symbols.
- /// If so, the signature of the generated `from_library` function
- /// will be altered to return a `Result<Self, ::libloading::Error>`
- has_required: bool,
-
/// Tracks the tokens that will appears inside the library struct -- e.g.:
/// ```ignore
/// struct Lib {
@@ -136,8 +131,6 @@ impl DynamicItems {
assert_eq!(args.len(), args_identifiers.len());
}
- self.has_required |= is_required;
-
self.struct_members.push(
if is_required {
quote! {