Skip to content

Commit 0703ed0

Browse files
committed
validateWithREST is unused as of 8efe154
1 parent 486de8d commit 0703ed0

File tree

2 files changed

+0
-24
lines changed

2 files changed

+0
-24
lines changed

app/javascript/oldjs/services/miq_service.js

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -92,16 +92,6 @@ ManageIQ.angular.app.service('miqService', ['$q', 'API', '$window', function($q,
9292
miqAjaxButton(url, model || true);
9393
};
9494

95-
this.validateWithREST = function($event, credType, url, formSubmit) {
96-
angular.element('#button_name').val('validate');
97-
angular.element('#cred_type').val(credType);
98-
if (formSubmit) {
99-
miqSparkleOn();
100-
return $q.when(miqRESTAjaxButton(url, $event.target, 'json'));
101-
}
102-
$event.preventDefault();
103-
};
104-
10595
this.disabledClick = function($event) {
10696
$event.preventDefault();
10797
};

spec/javascripts/services/miq_service_spec.js

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -154,20 +154,6 @@ describe('miqService', function() {
154154
});
155155
});
156156

157-
describe('#validateWithREST', function() {
158-
beforeEach(function() {
159-
testService.validateWithREST($.Event, "default", '/ems_cloud/create/new?button=validate&type=default', true);
160-
});
161-
162-
it('turns the spinner on via the miqService', function() {
163-
expect(window.miqSparkleOn).toHaveBeenCalled();
164-
});
165-
166-
it('delegates to miqService.miqAjaxButton', function() {
167-
expect(window.miqAjaxButton).toHaveBeenCalledWith('/ems_cloud/create/new?button=validate&type=default', true);
168-
});
169-
});
170-
171157
describe('#validateWithAjax', function() {
172158
beforeEach(function() {
173159
testService.validateWithAjax('/host/create/new?button=validate&type=default');

0 commit comments

Comments
 (0)