rmports - remove module ports with no connections#

yosys> help rmports#
rmports [selection]
This pass identifies ports in the selected modules which are not used or
driven and removes them.