Revode unused code