detect unused variables

- variable and function declarations
- private class members