remove unused variable docs_patterns