Remove some dead code
Issue #210: refactoring fragment control