Hi,

shardulc has left the following comment at Identify and eliminate dead code (100+ lines) #2 https://www.google-melange.com/gci/task/view/google/gci2014/5338260117127168:


Dead Code Script


I did this task by writing my own dead code detection script. The script is in Python, and uses a little regex to find function declarations and uses. It's probably buggy and gives out a lot of false positives, but it doesn't miss any dead functions (I hope). It could be faster if I used grep instead of Python's re module, which I am working on. But it works! Can I submit it?

The patch I've uploaded contains the changes I made after running my script on the src/conv directory to look for function definitions, and searching for calls to them everywhere in the src/ directory. It is more than 100 lines if deleted files are counted.

Thanks for your attention!


Greetings,
The Google Open Source Programs Team


---
You are receiving this message because you are subscribed to Identify and eliminate dead code (100+ lines) #2. To stop receiving these messages, go to: https://www.google-melange.com/gci/task/view/google/gci2014/5338260117127168.

------------------------------------------------------------------------------
Dive into the World of Parallel Programming! The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net
_______________________________________________
BRL-CAD Tracker mailing list
brlcad-tracker@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/brlcad-tracker

Reply via email to