[library] Remove unused variables in TWLayoutManager