Skip to content

Commit

Permalink
Remove unused analytics spatialInterface APIs
Browse files Browse the repository at this point in the history
  • Loading branch information
hobinjk-ptc committed Jul 18, 2023
1 parent c3a7944 commit aa97327
Showing 1 changed file with 0 additions and 91 deletions.
91 changes: 0 additions & 91 deletions libraries/objectDefaultFiles/object.js
Original file line number Diff line number Diff line change
Expand Up @@ -737,15 +737,8 @@
this.analyticsClose = makeSendStub('analyticsClose');
this.analyticsFocus = makeSendStub('analyticsFocus');
this.analyticsBlur = makeSendStub('analyticsBlur');
this.analyticsSetCursorTime = makeSendStub('analyticsSetCursorTime');
this.analyticsSetHighlightRegion = makeSendStub('analyticsSetHighlightRegion');
this.analyticsSetDisplayRegion = makeSendStub('analyticsSetDisplayRegion');
this.analyticsHydrateRegionCards = makeSendStub('analyticsHydrateRegionCards');
this.analyticsSetLens = makeSendStub('analyticsSetLens');
this.analyticsSetLensDetail = makeSendStub('analyticsSetLensDetail');
this.analyticsSetSpaghettiAttachPoint = makeSendStub('analyticsSetSpaghettiAttachPoint');
this.analyticsSetSpaghettiVisible = makeSendStub('analyticsSetSpaghettiVisible');
this.analyticsSetAllClonesVisible = makeSendStub('analyticsSetAllClonesVisible');

this.getOAuthToken = makeSendStub('getOAuthToken');

Expand Down Expand Up @@ -1663,30 +1656,6 @@
});
};

/**
* @param {number} time - cursor time in ms
*/
this.analyticsSetCursorTime = function analyticsSetCursorTime(time) {
postDataToParent({
analyticsSetCursorTime: {
frame: spatialObject.frame,
time,
},
});
};

/**
* @param {TimeRegion} highlightRegion
*/
this.analyticsSetHighlightRegion = function analyticsSetHighlightRegion(highlightRegion) {
postDataToParent({
analyticsSetHighlightRegion: {
frame: spatialObject.frame,
highlightRegion,
},
});
};

/**
* @param {TimeRegion} displayRegion
*/
Expand All @@ -1711,66 +1680,6 @@
});
};

/**
* @param {"reba"|"motion"} lens
*/
this.analyticsSetLens = function analyticsSetLens(lens) {
postDataToParent({
analyticsSetLens: {
frame: spatialObject.frame,
lens,
},
});
};

/**
* @param {"bone"|"pose"} lensDetail
*/
this.analyticsSetLensDetail = function analyticsSetLensDetail(lensDetail) {
postDataToParent({
analyticsSetLensDetail: {
frame: spatialObject.frame,
lensDetail,
},
});
};

/**
* @param {string} spaghettiAttachPoint - joint id
*/
this.analyticsSetSpaghettiAttachPoint = function analyticsSetSpaghettiAttachPoint(spaghettiAttachPoint) {
postDataToParent({
analyticsSetSpaghettiAttachPoint: {
frame: spatialObject.frame,
spaghettiAttachPoint,
},
});
};

/**
* @param {boolean} allClonesVisible
*/
this.analyticsSetSpaghettiVisible = function analyticsSetSpaghettiVisible(spaghettiVisible) {
postDataToParent({
analyticsSetSpaghettiVisible: {
frame: spatialObject.frame,
spaghettiVisible,
},
});
};

/**
* @param {boolean} allClonesVisible
*/
this.analyticsSetAllClonesVisible = function analyticsSetAllClonesVisible(allClonesVisible) {
postDataToParent({
analyticsSetAllClonesVisible: {
frame: spatialObject.frame,
allClonesVisible,
},
});
};

/**
* Makes an OAuth request at `authorizationUrl`, requires the OAuth flow to redirect to navigate://<toolbox>
* Will not call `callback` on initial OAuth flow, as the whole app gets reloaded
Expand Down

0 comments on commit aa97327

Please sign in to comment.