the owner or controller of any building in which there is a tile or tiling flue or stove pipe or other contrivance which is used or may be used as a flue or chimney or any flue or chimney which is in such a condition as to be unsafe to at once remove said tile or tiling flue or stove pipe or other contrivance which is used or maybe used as a flue or to repair such flue or chimney which is in such