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.
This commit is contained in:
Cameron Zwarich 2014-05-08 13:59:53 -07:00
parent c828a5d2ac
commit 20fa4d7e11

View file

@ -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