remove redundant/dead code
Comment casting errors caused by variable length API integers.
Declare virtual on implementations of pure virtual methods.