Further trim irrelevant code.

Signed-off-by: crynobone <crynobone@gmail.com>