Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 298133 - New refactoring for Fortran - Remove Unused Variables
Summary: New refactoring for Fortran - Remove Unused Variables
Status: RESOLVED FIXED
Alias: None
Product: PTP
Classification: Tools
Component: Photran.Refactoring Engine (show other bugs)
Version: 5.0   Edit
Hardware: PC Linux
: P3 enhancement (vote)
Target Milestone: 6.0   Edit
Assignee: Jeffrey Overbey CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-12-17 17:42 EST by Gustavo Rissetti CLA
Modified: 2010-03-05 10:49 EST (History)
2 users (show)

See Also:


Attachments
Remove Unused Variables source code. (6.67 KB, text/x-java)
2009-12-17 17:42 EST, Gustavo Rissetti CLA
no flags Details
Remove Unused Variables source code (with EPL license header). (7.22 KB, text/x-java)
2009-12-17 19:05 EST, Gustavo Rissetti CLA
no flags Details
Remove Unused Variables source code (with correct EPL license header). (7.15 KB, text/x-java)
2009-12-17 19:18 EST, Gustavo Rissetti CLA
com-eclipse-dot-org: iplog+
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Gustavo Rissetti CLA 2009-12-17 17:42:46 EST
Created attachment 154721 [details]
Remove Unused Variables source code.

Refactoring that removes unused variables in Fortran code, making it more readable, and could generate gains of performance, depending on the compiler used.
Comment 1 Jeffrey Overbey CLA 2009-12-17 18:15:37 EST
Hi Gustavo,

Thanks for the contribution.  Can you please confirm that

1. you wrote 100% of the code without incorporating content from elsewhere or
relying on the intellectual property of others,

2. you have the right to contribute the code to Eclipse, and

3. you have included the EPL license header in all source files?

(Please reply with a comment on this bug; you can just say, "I confirm that I wrote 100%..." and repeat these points.  This is for our intellectual property review.  For #1, if some of your code is borrowed from or based on someone else's code, please state that explicitly.)

Thanks.
Jeff
Comment 2 Gustavo Rissetti CLA 2009-12-17 19:05:08 EST
Created attachment 154728 [details]
Remove Unused Variables source code (with EPL license header).

Refactoring that removes unused variables in Fortran code, making it more
readable, and could generate gains of performance, depending on the compiler
used.
Comment 3 Gustavo Rissetti CLA 2009-12-17 19:06:34 EST
(In reply to comment #1)

I confirm that I wrote 100% of the code without incorporating content from elsewhere or relying on the intellectual property of others, and I have the right to contribute the code to Eclipse, and I have included the EPL license header in all source files.

> Hi Gustavo,
> 
> Thanks for the contribution.  Can you please confirm that
> 
> 1. you wrote 100% of the code without incorporating content from elsewhere or
> relying on the intellectual property of others,
> 
> 2. you have the right to contribute the code to Eclipse, and
> 
> 3. you have included the EPL license header in all source files?
> 
> (Please reply with a comment on this bug; you can just say, "I confirm that I
> wrote 100%..." and repeat these points.  This is for our intellectual property
> review.  For #1, if some of your code is borrowed from or based on someone
> else's code, please state that explicitly.)
> 
> Thanks.
> Jeff
Comment 4 Gustavo Rissetti CLA 2009-12-17 19:18:40 EST
Created attachment 154734 [details]
Remove Unused Variables source code (with correct EPL license header).
Comment 5 Jeffrey Overbey CLA 2009-12-18 14:43:09 EST
Since the contribution is fewer than 250 LOC, we will not need to go through the full IP review process for this refactoring.  (Attachment is 147 LOC.)
Comment 6 Jeffrey Overbey CLA 2009-12-18 14:48:01 EST
Gustavo,

Could you please add a description of this refactoring to Section 4 of the Photran 6.0 Advanced Features manual, so our users will know how to use it and what they should expect it to do?

http://wiki.eclipse.org/PTP/photran/documentation/photran6advanced

You can look at the descriptions of some other refactorings for examples.  Thanks in advance!

I will review your code and check it into CVS as soon as possible.

Jeff
Comment 7 Jeffrey Overbey CLA 2010-01-15 17:54:03 EST
This refactoring has been committed to CVS, and Tim wrote some unit tests.  I still need to review the code and documentation before closing this bug...
Comment 8 Jeffrey Overbey CLA 2010-03-04 17:55:50 EST
I finished the code review and made some minor coding style changes, mostly breaking it into smaller methods, renaming some things, and changing some methods to create a new object rather than modify an existing one (for clarity).  Changes are in CVS.

Still need to do doc review...
Comment 9 Jeffrey Overbey CLA 2010-03-05 10:49:39 EST
Done.  Thanks for the contribution!