Skip to content

Commit 73e4115

Browse files
committed
Remove the unused class_constants option
1 parent 0f0fd83 commit 73e4115

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

src/lib.rs

-8
Original file line numberDiff line numberDiff line change
@@ -119,11 +119,6 @@ impl Builder {
119119
self
120120
}
121121

122-
pub fn disable_class_constants(mut self) -> Builder {
123-
self.options.class_constants = false;
124-
self
125-
}
126-
127122
pub fn generate(self) -> Result<Bindings, ()> {
128123
Bindings::generate(self.options, None)
129124
}
@@ -146,8 +141,6 @@ pub struct BindgenOptions {
146141
pub derive_debug: bool,
147142
/// Generate or not only stable rust.
148143
pub unstable_rust: bool,
149-
/// Whether to generate C++ class constants.
150-
pub class_constants: bool,
151144
/// Wether to generate names that are **directly** under namespaces.
152145
pub namespaced_constants: bool,
153146
/// Whether to use msvc mangling rules
@@ -174,7 +167,6 @@ impl Default for BindgenOptions {
174167
enable_cxx_namespaces: false,
175168
override_enum_ty: "".to_string(),
176169
unstable_rust: true,
177-
class_constants: true,
178170
namespaced_constants: true,
179171
msvc_mangling: false,
180172
raw_lines: vec![],

0 commit comments

Comments
 (0)