mirror of
https://github.com/nasa/openmct.git
synced 2025-06-17 06:38:17 +00:00
chore: Remove unsed variables from codebase
This commit is contained in:
@ -24,12 +24,10 @@ define([
|
||||
'./TelemetryMetadataManager',
|
||||
'./TelemetryValueFormatter',
|
||||
'lodash',
|
||||
'EventEmitter'
|
||||
], function (
|
||||
TelemetryMetadataManager,
|
||||
TelemetryValueFormatter,
|
||||
_,
|
||||
EventEmitter
|
||||
_
|
||||
) {
|
||||
/**
|
||||
* A LimitEvaluator may be used to detect when telemetry values
|
||||
@ -175,7 +173,7 @@ define([
|
||||
/**
|
||||
* @private
|
||||
*/
|
||||
TelemetryAPI.prototype.findSubscriptionProvider = function (domainObject) {
|
||||
TelemetryAPI.prototype.findSubscriptionProvider = function () {
|
||||
var args = Array.prototype.slice.apply(arguments);
|
||||
function supportsDomainObject(provider) {
|
||||
return provider.supportsSubscribe.apply(provider, args);
|
||||
@ -187,7 +185,7 @@ define([
|
||||
/**
|
||||
* @private
|
||||
*/
|
||||
TelemetryAPI.prototype.findRequestProvider = function (domainObject, options) {
|
||||
TelemetryAPI.prototype.findRequestProvider = function (domainObject) {
|
||||
var args = Array.prototype.slice.apply(arguments);
|
||||
function supportsDomainObject(provider) {
|
||||
return provider.supportsRequest.apply(provider, args);
|
||||
@ -226,8 +224,7 @@ define([
|
||||
* @returns {Promise.<object[]>} a promise for an array of
|
||||
* telemetry data
|
||||
*/
|
||||
TelemetryAPI.prototype.request = function (domainObject, options) {
|
||||
this.standardizeRequestOptions(options);
|
||||
TelemetryAPI.prototype.request = function (domainObject) {
|
||||
var provider = this.findRequestProvider.apply(this, arguments);
|
||||
return provider.request.apply(provider, arguments);
|
||||
};
|
||||
@ -248,7 +245,7 @@ define([
|
||||
* @returns {Function} a function which may be called to terminate
|
||||
* the subscription
|
||||
*/
|
||||
TelemetryAPI.prototype.subscribe = function (domainObject, callback, options) {
|
||||
TelemetryAPI.prototype.subscribe = function (domainObject, callback) {
|
||||
var provider = this.findSubscriptionProvider.apply(this, arguments);
|
||||
return provider.subscribe.apply(provider, arguments);
|
||||
};
|
||||
|
Reference in New Issue
Block a user