-
Notifications
You must be signed in to change notification settings - Fork 67
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
Unused variable into code #16
Comments
Hi Romain, The codebase sure needs a lot of cleanup. I totally agree. The issue is how Regards 2012/2/12 Romain Gonord <
|
Hi Mattias, |
Argh, I sent a pull request with the wrong branch (i was pulling master, which has no difference with the official one =D). Now it's fixed. |
When using eclipse (in my case indigo), validation can check for unused variable which is a very useful feature.
Into infoglue, right now, we can see that there are a lot of unused variable :
For example, into ChangeMultiContentStatePublishAction.java, we have on line 79 :
SiteNodeVersion siteNodeVersion = SiteNodeStateController.getController().changeState(siteNodeVersionId, SiteNodeVersionVO.PUBLISH_STATE, getVersionComment(), overrideVersionModifyer, this.recipientFilter, this.getInfoGluePrincipal(), null, events);
I can imagine that the method is useful but the created variable is useless and can be remove.
In some case, removing the defined variable can also lead to remove the needed import, that way we can reduce code coupling.
The project may need some clean up with eclipse help =/
The text was updated successfully, but these errors were encountered: