Infinitive phrases don’t contribute to the dreary mood of this short passage from the novel “Bleak House” by Charles Dickens. Infinitive phrases are consisted form the infinitive form of a verb plus any complements (often direct object) or/and modifiers (often adverb) and in this short passage there are none of them, so they can’t contribute to the mood.