private void removeInstructionNGrams(InstructHash instHash) {
		for(int i=0;i<instHash.nGrams.length;++i) {
			Hash curHash = instHash.nGrams[i];
			if (curHash == null) continue;
			HashEntry hashEntry = instHash.hashEntries.get(curHash);
			if (hashEntry == null) continue;
			matchSort.remove(hashEntry);	// Remove from matchSort before modifying instList
			hashEntry.instList.remove(instHash);
			if (hashEntry.instList.isEmpty())
				hashSort.remove(curHash);
			else
				matchSort.add(hashEntry);		// reinsert after update
		}
	}
Remove all n-grams associated with a particular instruction
@param instHash is the particular instruction
Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/model/correlate/HashStore.java