servo: Merge #2373 - Remove an unused field from CodegenRust.py (from zwarich:remove-default-visibility); r=Ms2ger

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.

Source-Repo: https://github.com/servo/servo
Source-Revision: 6d381959db18acc5c2f0c1891df8afe5df8372cb
This commit is contained in:
Cameron Zwarich 2014-05-08 17:46:15 -04:00
Родитель 8c3de38943
Коммит 2117ef4b83
1 изменённых файлов: 0 добавлений и 1 удалений

Просмотреть файл

@ -3250,7 +3250,6 @@ class CGClass(CGThing):
self.isStruct = isStruct self.isStruct = isStruct
self.disallowCopyConstruction = disallowCopyConstruction self.disallowCopyConstruction = disallowCopyConstruction
self.indent = indent self.indent = indent
self.defaultVisibility ='pub' if isStruct else 'priv'
self.decorators = decorators self.decorators = decorators
self.extradeclarations = extradeclarations self.extradeclarations = extradeclarations
self.extradefinitions = extradefinitions self.extradefinitions = extradefinitions