@Override public void delete() { if (isRootThread()) { deleteBlips(); } else { parentBlip.deleteThread(this); } }
void deleteSelfIfEmpty() { if (blips.isEmpty() && !isRootThread()) { parentBlip.deleteThread(this); } }
@Override public void delete() { checkIsUsable(); Collection<WaveletBasedConversationThread> allReplies = CollectionUtils.createQueue(); CollectionUtils.copyValuesToJavaCollection(replies, allReplies); // Delete reply threads. // TODO(anorth): Move this loop to WBCT, where it can delete all the // inline reply anchors in one pass. for (WaveletBasedConversationThread replyThread : allReplies) { deleteThread(replyThread); } // All replies have been deleted, so remove this empty blip. parentThread.deleteBlip(this, true); }