mirror of
https://github.com/servo/servo.git
synced 2025-06-13 02:44:29 +00:00
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:
parent
c828a5d2ac
commit
20fa4d7e11
1 changed files with 0 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue