Commit 59e4669d authored by Ralf Habacker's avatar Ralf Habacker
Browse files

Remove obsolate and undescriptive method UMLClassifier::attributes().

parent 88cce504
......@@ -1401,7 +1401,7 @@ void ListPopupMenu::makeClassifierPopup(ClassifierWidget *c)
insert(mt_Refactoring, Icon_Utils::SmallIcon(Icon_Utils::it_Refactor), i18n("Refactor"));
insert(mt_ViewCode, Icon_Utils::SmallIcon(Icon_Utils::it_View_Code), i18n("View Code"));
UMLClassifier *umlc = c->classifier();
if (umlc->isAbstract() && umlc->attributes() == 0)
if (umlc->isAbstract() && umlc->getAttributeList().size() == 0)
insert(mt_ChangeToInterface, i18n("Change into Interface"));
}
insert(mt_Properties);
......
......@@ -424,17 +424,6 @@ UMLObject* UMLClassifier::createTemplate(const QString& currentName /*= QString(
return newTemplate;
}
/**
* Returns the number of attributes for the class.
*
* @return The number of attributes for the class.
*/
int UMLClassifier::attributes()
{
UMLClassifierListItemList atts = getFilteredList(UMLObject::ot_Attribute);
return atts.count();
}
/**
* Returns the attributes for the specified scope.
* @return List of true attributes for the class.
......
......@@ -68,8 +68,6 @@ public:
int removeAttribute(UMLAttribute *att);
int attributes() ;
UMLAttributeList getAttributeList() const;
UMLAttributeList getAttributeList(Uml::Visibility::Enum scope) const;
UMLAttributeList getAttributeListStatic(Uml::Visibility::Enum scope) const;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment