Remove unused code from pkgcmd.c