Re: Finding unused hdf data
"David Jeske" <[email protected]> Mon, 13 Apr 2009 17:12:50 -0000
| Newsgroups | gmane.text.clearsilver.general |
|---|---|
| Message-ID | <[email protected]> |
I understand now. We have run into this problem before. One of the disadvantages of clearsilver becoming a more full language, is that it's not possible to do this perfectly with static analysis. I think the impedement to static analysis is mostly the Strings[foo] syntax. That said, this doesn't get used very often for language variables. This is one of the reasons I prefer using automatic language extraction, instead of manual language strings. However, I recognize that automatic extraction has it's limits and problems as well. It seems like it might be practical to have a CS evaluation mode that hits a callback for every HDF variable accessed. It would need to evaluate all conditional paths. Even then it would have issues like I mentioned above, however, this may be minimal in your case. This concept sounds vaguely familiar to me, but I'm not sure why. Any thoughts Brandon? -- Culley Harrelson wrote: > My efforts are mostly to make translation more efficient. So, say I had a > hdf file with this item: > > Strings.hello [Lang] = hello world! > > Once upon a time this was used by a cs file but the page was redesigned and > it is no longer used anywhere. I want to get these old items out of the > system so people aren't translating them.