Remove unused variable

just micro modifications.

- `$content` is not used
- `_build_tree` is a class method