[API] Remove toLegacyDefinition

https://github.com/nasa/openmct/pull/1212#discussion_r81666469
This commit is contained in:
Victor Woeltjen 2016-10-06 17:50:01 -07:00
parent 09d59f00e7
commit 13b5e7c00e

View File

@ -55,28 +55,5 @@ define(function () {
return domainObject.type === this.key;
};
/**
* Get a definition for this type that can be registered using the
* legacy bundle format.
* @private
*/
Type.prototype.toLegacyDefinition = function () {
var def = {};
def.name = this.definition.metadata.label;
def.glyph = this.definition.metadata.glyph;
def.description = this.definition.metadata.description;
def.properties = this.definition.form;
if (this.definition.initialize) {
def.model = {};
this.definition.initialize(def.model);
}
if (this.definition.creatable) {
def.features = ['creation'];
}
return def;
};
return Type;
});