From 73e41152a137aaef5ea1cbbe4663d4a220049015 Mon Sep 17 00:00:00 2001 From: Nick Fitzgerald Date: Mon, 24 Oct 2016 13:08:59 -0700 Subject: Remove the unused class_constants option --- src/lib.rs | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index c1aec66d..0b1ac672 100755 --- a/src/lib.rs +++ b/src/lib.rs @@ -119,11 +119,6 @@ impl Builder { self } - pub fn disable_class_constants(mut self) -> Builder { - self.options.class_constants = false; - self - } - pub fn generate(self) -> Result { Bindings::generate(self.options, None) } @@ -146,8 +141,6 @@ pub struct BindgenOptions { pub derive_debug: bool, /// Generate or not only stable rust. pub unstable_rust: bool, - /// Whether to generate C++ class constants. - pub class_constants: bool, /// Wether to generate names that are **directly** under namespaces. pub namespaced_constants: bool, /// Whether to use msvc mangling rules @@ -174,7 +167,6 @@ impl Default for BindgenOptions { enable_cxx_namespaces: false, override_enum_ty: "".to_string(), unstable_rust: true, - class_constants: true, namespaced_constants: true, msvc_mangling: false, raw_lines: vec![], -- cgit v1.2.3