remove unused variables from branch inherit. don't process doclinks for TOCs. for WEB-6611 +review WEBCR @ajones @fcurier @hhunsinger @zdavitiani
code conventions for branch inherit for WEB-6611 +review WEBCR-208