mirror of
https://github.com/nasa/openmct.git
synced 2025-02-21 01:42:31 +00:00
[Roots] Remove unnecessary model provider
This commit is contained in:
parent
3f50bdb334
commit
f6253ae7ed
@ -23,7 +23,6 @@
|
||||
define([
|
||||
'legacyRegistry',
|
||||
'./actions/ActionDialogDecorator',
|
||||
'./components/NewRootModelProvider',
|
||||
'./directives/MCTView',
|
||||
'./services/Instantiate',
|
||||
'./capabilities/APICapabilityDecorator',
|
||||
@ -32,7 +31,6 @@ define([
|
||||
], function (
|
||||
legacyRegistry,
|
||||
ActionDialogDecorator,
|
||||
NewRootModelProvider,
|
||||
MCTView,
|
||||
Instantiate,
|
||||
APICapabilityDecorator,
|
||||
@ -77,12 +75,6 @@ define([
|
||||
provides: "actionService",
|
||||
implementation: ActionDialogDecorator,
|
||||
depends: ["openmct"]
|
||||
},
|
||||
{
|
||||
"provides": "modelService",
|
||||
"type": "provider",
|
||||
"implementation": NewRootModelProvider,
|
||||
"depends": ["openmct"]
|
||||
}
|
||||
],
|
||||
policies: [
|
||||
|
@ -1,37 +0,0 @@
|
||||
/*****************************************************************************
|
||||
* Open MCT, Copyright (c) 2014-2016, United States Government
|
||||
* as represented by the Administrator of the National Aeronautics and Space
|
||||
* Administration. All rights reserved.
|
||||
*
|
||||
* Open MCT is licensed under the Apache License, Version 2.0 (the
|
||||
* "License"); you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
* http://www.apache.org/licenses/LICENSE-2.0.
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
* License for the specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*
|
||||
* Open MCT Web includes source code licensed under additional open source
|
||||
* licenses. See the Open Source Licenses file (LICENSES.md) included with
|
||||
* this source code distribution or the Licensing information page available
|
||||
* at runtime from the About dialog for additional information.
|
||||
*****************************************************************************/
|
||||
|
||||
define(['../../api/objects/object-utils'], function (utils) {
|
||||
function NewRootModelProvider(openmct) {
|
||||
this.openmct = openmct;
|
||||
}
|
||||
|
||||
NewRootModelProvider.prototype.getModels = function (ids) {
|
||||
return this.openmct.objects.getRoot().then(function (root) {
|
||||
return {
|
||||
ROOT: utils.toOldFormat(root)
|
||||
};
|
||||
});
|
||||
};
|
||||
|
||||
return NewRootModelProvider;
|
||||
});
|
Loading…
x
Reference in New Issue
Block a user