Remove assert variable that is diagnosed as unused otherwise.