The answer is not in the posted lines but in Alexandre Dumas’s book.
En is a pronoun with an antecedent which is quelque trésor and y is also a pronoun referring to le registre des prisonniers
Removing en would make the first sentence incomplete.
Removing y would just remove an explicit information.
Leave a comment