From 20fa4d7e1138901aeb2431d3b0f518fb5b184cbc Mon Sep 17 00:00:00 2001 From: Cameron Zwarich Date: Thu, 8 May 2014 13:59:53 -0700 Subject: [PATCH] Remove an unused field from CodegenRust.py. The defaultVisibility field was cloned from the C++ implementation, where it tracks the difference between struct and class visibility. Since no similar concept exists in Rust, it should be removed. --- src/components/script/dom/bindings/codegen/CodegenRust.py | 1 - 1 file changed, 1 deletion(-) diff --git a/src/components/script/dom/bindings/codegen/CodegenRust.py b/src/components/script/dom/bindings/codegen/CodegenRust.py index 23078b0ae4b..0dda46196a0 100644 --- a/src/components/script/dom/bindings/codegen/CodegenRust.py +++ b/src/components/script/dom/bindings/codegen/CodegenRust.py @@ -3250,7 +3250,6 @@ class CGClass(CGThing): self.isStruct = isStruct self.disallowCopyConstruction = disallowCopyConstruction self.indent = indent - self.defaultVisibility ='pub' if isStruct else 'priv' self.decorators = decorators self.extradeclarations = extradeclarations self.extradefinitions = extradefinitions