Skip to content

Commit 3e71220

Browse files
RooobinYenobodyiam
authored andcommitted
refactor: remove unused by-owner frontend code from AppService
Remove orphaned find_app_by_owner function and resource definition that were no longer used after the /apps/by-owner endpoint removal.
1 parent 1d77885 commit 3e71220

1 file changed

Lines changed: 0 additions & 18 deletions

File tree

  • apollo-portal/src/main/resources/static/scripts/services

apollo-portal/src/main/resources/static/scripts/services/AppService.js

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,6 @@ appService.service('AppService', ['$resource', '$q', 'AppUtil', function ($resou
2121
isArray: true,
2222
url: AppUtil.prefixPath() + '/apps'
2323
},
24-
find_app_by_owner: {
25-
method: 'GET',
26-
isArray: true,
27-
url: AppUtil.prefixPath() + '/apps/by-owner'
28-
},
2924
find_app_by_self: {
3025
method: 'GET',
3126
isArray: true,
@@ -94,19 +89,6 @@ appService.service('AppService', ['$resource', '$q', 'AppUtil', function ($resou
9489
});
9590
return d.promise;
9691
},
97-
find_app_by_owner: function (owner, page, size) {
98-
var d = $q.defer();
99-
app_resource.find_app_by_owner({
100-
owner: owner,
101-
page: page,
102-
size: size
103-
}, function (result) {
104-
d.resolve(result);
105-
}, function (result) {
106-
d.reject(result);
107-
});
108-
return d.promise;
109-
},
11092
find_app_by_self: function (page, size) {
11193
var d = $q.defer();
11294
app_resource.find_app_by_self({

0 commit comments

Comments
 (0)