remove unused getPattern method