Remove unused blocks