array-dict: remove useless code