-
Notifications
You must be signed in to change notification settings - Fork 107
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove PrototypeFactoryDeprecated #338
Remove PrototypeFactoryDeprecated #338
Conversation
Codecov Report
@@ Coverage Diff @@
## master #338 +/- ##
============================================
+ Coverage 48.2% 48.25% +0.04%
+ Complexity 2862 2861 -1
============================================
Files 239 238 -1
Lines 13509 13493 -16
Branches 2616 2615 -1
============================================
- Hits 6512 6511 -1
+ Misses 6159 6145 -14
+ Partials 838 837 -1
Continue to review full report at Codecov.
|
I don’t know if it was needed, but I just rebased this on master. |
My only concern is that any other third party could be using the I don't know if this should be something to worry about, taking into account that the class is called PrototypeFactoryDeprecated since April 2016 (feels like we gave plenty of time to react for anyone using) |
This class is used to get values from a map, but nothing is ever put into the map. The one place it’s called to get a (null) value, in XFormParser.buildInstanceStructure, is not exercised by any current tests.
Codecov Report
@@ Coverage Diff @@
## master #338 +/- ##
============================================
+ Coverage 54.60% 54.65% +0.05%
Complexity 3222 3222
============================================
Files 243 242 -1
Lines 13330 13314 -16
Branches 2564 2563 -1
============================================
- Hits 7279 7277 -2
+ Misses 5245 5232 -13
+ Partials 806 805 -1
Continue to review full report at Codecov.
|
Merging now because we're about to do a major version bump. Thanks! |
This class is used to get values from a map, but nothing is ever put into the map. It is called in only one place, in XFormParser.buildInstanceStructure, to get a value (always null, because of the always-empty map). It is called only if
node.getAttributeValue(NAMESPACE_JAVAROSA, "modeltype")
is not null.Do we support this “modeltype” attribute? I don’t find it used anywhere in ODK. If we don’t, we can pull out a bit more code, and if we don’t know we can go ahead with the change in this PR.
What has been done to verify that this works as intended?
I have satisfied myself that the code I removed is dead code, and that the same path will continue to be executed.
Are there any risks to merging this code? If so, what are they?
No.