def METHOD_NAME(self):
    """移除分类"""
    if not os.path.exists(self.__imageListMgr.filePath):
        QtWidgets.QMessageBox.information(self.__parent, "提示",
                                          "请先打开正确的图像库")
        return
    if not self.__ui.currentIndex().isValid():
        return
    classify = self.__ui.currentIndex().data()
    result = QtWidgets.QMessageBox.information(
        self.parent,
        "移除分类",
        "确定移除分类: {}".format(classify),
        buttons=QtWidgets.QMessageBox.Ok | QtWidgets.QMessageBox.Cancel,
        defaultButton=QtWidgets.QMessageBox.Cancel)
    if result == QtWidgets.QMessageBox.Ok:
        if len(self.__imageListMgr.imageList(classify)) > 0:
            QtWidgets.QMessageBox.warning(self.parent, "移除分类",
                                          "分类下存在图片，请先移除图片")
        else:
            self.__imageListMgr.METHOD_NAME(classify)
            self.setClassifyList(self.__imageListMgr.classifyList)