uri is not used anywhere in dir_changed(). One line commit message is clear what it is for.
uri
dir_changed()