ahaaaaa / android-unused-resources

Automatically exported from code.google.com/p/android-unused-resources
1 stars 0 forks source link

Detail wrong unused string #8

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Define a string in string.xml (ex: str_notification)
2. In source, write a function to log this str_notification (name this function 
is printLog() (Log.i(TAG, str_notification);}
3. Although we don't call printLog, but we need to keep it to use later.
4. Run android-unused-resources and see str_notification is listed as unused.

In fact although we don't use str_notification at the moment, but we need to 
keep it for using later? But herein str_notification is listed as unused.

Original issue reported on code.google.com by minh.tri...@gmail.com on 17 Jun 2011 at 3:11

GoogleCodeExporter commented 9 years ago
So if I'm reading that right, your problem is that it's telling you a string 
(str_notification) is unused RIGHT NOW, but may not be in the future?

If so, that's not a bug.

Original comment by skenned...@gmail.com on 6 Aug 2011 at 12:30

GoogleCodeExporter commented 9 years ago
Thanks for your response.
My bug is, a string (str_notification) is USED right now in a function (such as 
printLog() ...), but now this function (printLog()) is unused at the moment (I 
temporary don't call this function, but will recall it later).

Original comment by x3c...@gmail.com on 7 Aug 2011 at 7:38

GoogleCodeExporter commented 9 years ago
Can you post the line of code that uses str_notification?

Original comment by skenned...@gmail.com on 7 Aug 2011 at 1:30