                         println("deleted feed: \(feedID)")
                     })
 
-                    }, cancelAction: {
-                        doDeleteConversation()
-                })
-                
-            } else {
-                doDeleteConversation()
-            }
-
-            tableView.setEditing(false, animated: true)
-        }
-
-        return [deleteAction]
-    }
-
-    func tableView(tableView: UITableView, commitEditingStyle editingStyle: UITableViewCellEditingStyle, forRowAtIndexPath indexPath: NSIndexPath) {
-        /*
-        if editingStyle == .Delete {
-            
-            guard let conversation = feedConversations[safe: indexPath.row] else {
-                tableView.setEditing(false, animated: true)
-                return
-            }
-
-            let doDeleteConversation: () -> Void = {
-                
-                dispatch_async(dispatch_get_main_queue()) {
-                    
-                    guard let realm = conversation.realm else {
-                        return
-                    }
-
-                    realm.beginWrite()
-                    
-                    deleteConversation(conversation, inRealm: realm)
-
-                    let _ = try? realm.commitWrite()
-
-                    realm.refresh()
-
-                    delay(0.1) {
-                        tableView.setEditing(false, animated: true)
-                        tableView.deleteRowsAtIndexPaths([indexPath], withRowAnimation: .Automatic)
-
-                        // 延迟一些再发通知，避免影响 tableView 的删除
-                        delay(0.5) {
-                            NSNotificationCenter.defaultCenter().postNotificationName(YepConfig.Notification.changedConversation, object: nil)
-                        }
-                    }
-                }
-            }
-            
-            guard let feed = conversation.withGroup?.withFeed, feedCreator = feed.creator else {
-                return
-            }
-            
-            let feedID = feed.feedID
-            let feedCreatorID = feedCreator.userID
-            
-            // 若是创建者，再询问是否删除 Feed
-            
-            if feedCreatorID == YepUserDefaults.userID.value {
-                
-                YepAlert.confirmOrCancel(title: NSLocalizedString("Delete", comment: ""), message: NSLocalizedString("Also delete this feed?", comment: ""), confirmTitle: NSLocalizedString("Delete", comment: ""), cancelTitle: NSLocalizedString("Not now", comment: ""), inViewController: self, withConfirmAction: {
-                    
-                    doDeleteConversation()
-                    
-                    deleteFeedWithFeedID(feedID, failureHandler: nil, completion: {
-                        println("deleted feed: \(feedID)")
-                    })
-                    
                 }, cancelAction: {
                     doDeleteConversation()
                 })


        return true
    }
    /*
    func tableView(tableView: UITableView, titleForDeleteConfirmationButtonForRowAtIndexPath indexPath: NSIndexPath) -> String? {

        guard let conversation = feedConversations[safe: indexPath.row] else {
            fatalError("Invalid index of feedConversations!")
        }

        if let feed = conversation.withGroup?.withFeed {
            if feed.deleted {
                return NSLocalizedString("Delete", comment: "")
            }
            if let creator = feed.creator where creator.isMe {
                return NSLocalizedString("Delete", comment: "")
            }
        }

        return NSLocalizedString("Unsubscribe", comment: "")
    }
    */

    func tableView(tableView: UITableView, editActionsForRowAtIndexPath indexPath: NSIndexPath) -> [UITableViewRowAction]? {


            } else {
                doDeleteConversation()
            }

            tableView.setEditing(false, animated: true)
        }

        return [deleteAction]
    }
}

