I love it when I get to delete code. Deleting code, particularly dead code, is such a wonderfully therapeutic exercise. You should try it some time.
That’s why I love it when I find code like the method I just stumbled across. It cast the result of a Hibernate
Session.find() call directly to a domain object. But that would never work: instant class cast exception!
Quick scan of the code base: yep, this method never gets used anywhere. And 5 seconds later, this method no longer exists. And only the CVS system has any evidence it ever did…
sf.net.hibernate.Session.find(String) returns a