Remove unused findAllocations method in both job and node

This was replaced with a relationship at some point.
This commit is contained in:
Michael Lange
2018-07-05 11:24:14 -07:00
parent 38034733f7
commit 566c5843de
2 changed files with 2 additions and 20 deletions

View File

@@ -52,18 +52,9 @@ export default Watchable.extend({
summary: '/summary',
},
findAllocations(job) {
const url = `${this.buildURL('job', job.get('id'), job, 'findRecord')}/allocations`;
return this.ajax(url, 'GET', { data: this.buildQuery() }).then(allocs => {
return this.store.pushPayload('allocation', {
allocations: allocs,
});
});
},
fetchRawDefinition(job) {
const url = this.buildURL('job', job.get('id'), job, 'findRecord');
return this.ajax(url, 'GET', { data: this.buildQuery() });
return this.ajax(url, 'GET');
},
forcePeriodic(job) {

View File

@@ -1,12 +1,3 @@
import Watchable from './watchable';
export default Watchable.extend({
findAllocations(node) {
const url = `${this.buildURL('node', node.get('id'), node, 'findRecord')}/allocations`;
return this.ajax(url, 'GET').then(allocs => {
return this.store.pushPayload('allocation', {
allocations: allocs,
});
});
},
});
export default Watchable.extend();