summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDr. Chat <arkolbed@gmail.com>2021-03-29 11:17:38 -0500
committerEmilio Cobos Álvarez <emilio@crisal.io>2021-04-03 12:24:15 +0200
commit75eaaa6b61f896fe9fc788c4c21d27197c9ed2f6 (patch)
treedb0d69a89bc74f085e5156a0feb25255419cdac2 /src
parent2c5a1ea6b1bd56085d726dac347a31c49c95be76 (diff)
Remove `DynamicItems::has_required`
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! {