NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
Unused variables


Joined: 13 Aug 2007
Posts: 2
Reply with quote
Please excuse if this is the wrong place for this, but a facility to highlight unused / orphaned variables would be quite useful

Thanks

Charlie
View user's profileFind all posts by charlieSend private message


Joined: 15 Sep 2005
Posts: 51
Location: Birmingham, UK
Reply with quote
Quick way to check is to Control click.
View user's profileFind all posts by BlackGasSend private messageVisit poster's website


Joined: 22 Nov 2013
Posts: 3
Reply with quote
OK, this is an old thread but I didn't want to repeat a request.

Control + click is OK but it's not productive to check every use of a variable. It would be much better if PhpED highlighted variables that have only been used once and are therefore either redundant or typo's etc.
View user's profileFind all posts by dazzknowlesSend private message
Guru master

Joined: 24 Jul 2009
Posts: 710
Reply with quote
+1

And going along the same lines, it would be great if something could warn about using uninitialised variables.
View user's profileFind all posts by plugnplaySend private message
Unused variables
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours  
Page 1 of 1  

  
  
 Reply to topic