text: public void prunePacked() throws IOException {ObjectDirectory objdb = repo.getObjectDatabase();Collection<PackFile> packs = objdb.getPacks();File objects = repo.getObjectsDirectory();String[] fanout = objects.list();if (fanout != null && fanout.length > 0) {pm.beginTask(JGitText.get().pruneLoosePackedObjects, fanout.length);try {for (String d : fanout) {checkCancelled();pm.update(1);if (d.length() != 2)continue;String[] entries = new File(objects, d).list();if (entries == null)continue;for (String e : entries) {checkCancelled();if (e.length() != Constants.OBJECT_ID_STRING_LENGTH - 2)continue;ObjectId id;try {id = ObjectId.fromString(d + e);} catch (IllegalArgumentException notAnObject) {continue;}boolean found = false;for (PackFile p : packs) {checkCancelled();if (p.hasObject(id)) {found = true;break;}}if (found)FileUtils.delete(objdb.fileFor(id), FileUtils.RETRY| FileUtils.SKIP_MISSING| FileUtils.IGNORE_ERRORS);}}} finally {pm.endTask();}}}