Remove unused api wrapper for getAppLogStream()

This commit is contained in:
Johannes Zellner
2017-03-20 10:46:27 +01:00
parent 6a523606ca
commit e0df19c888

View File

@@ -1,7 +1,6 @@
'use strict';
/* global angular */
/* global EventSource */
angular.module('Application').service('Client', ['$http', 'md5', 'Notification', function ($http, md5, Notification) {
var client = null;
@@ -613,11 +612,6 @@ angular.module('Application').service('Client', ['$http', 'md5', 'Notification',
else return callback(new Error('App not found'));
};
Client.prototype.getAppLogStream = function (appId) {
var source = new EventSource(client.apiOrigin + '/api/v1/apps/' + appId + '/logstream');
return source;
};
Client.prototype.getAppIconUrls = function (app) {
return {
cloudron: app.iconUrl ? (this.apiOrigin + app.iconUrl + '?access_token=' + token) : null,