ropensci / RNeXML

Implementing semantically rich NeXML I/O in R
https://docs.ropensci.org/RNeXML
Other
13 stars 9 forks source link

rootEdge disposable? #207

Closed hlapp closed 5 years ago

hlapp commented 5 years ago

Based on what I can find, there is no place in the code (or the tests) that makes any assignment to/from tree@rootedge, or that uses the rootEdge class in some other way. Also, I just accidentally borked the class, yet that didn't result in any test failures, further corroborating the observation that this is maybe from a former time when it was needed, but is now disposable?

I'd like to remove it if it is.

cboettig commented 5 years ago

I think it's just there because it exists as a complexType defined in the schema, but yeah, I don't think it was actually ever used. Not sure if that would cause a failure on parsing a NeXML file that made use of that class? Clearly we don't have any examples in our test suite

hlapp commented 5 years ago

Not sure if that would cause a failure on parsing a NeXML file that made use of that class?

I don't know how it would since there is nothing instantiating it or assigning the slot. It does mean that the file would not be fully round-tripped. But there are other examples of that (such as networks ...).

cboettig commented 5 years ago

very true. in any event, this is certainly disposable so do go ahead and remove the rootEdge class def.