[ARVADOS-WORKBENCH2] updated: 1.1.4-698-ge478b4d

Git user git at public.curoverse.com
Tue Aug 21 04:29:44 EDT 2018


Summary of changes:
 src/services/services.ts | 16 +---------------
 1 file changed, 1 insertion(+), 15 deletions(-)

       via  e478b4da43dcf7c0625b145c906e39d77fb5941f (commit)
      from  b002d610f3e0e7a181e8119a3604c7577e0348f4 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.


commit e478b4da43dcf7c0625b145c906e39d77fb5941f
Author: Michal Klobukowski <michal.klobukowski at contractors.roche.com>
Date:   Tue Aug 21 10:29:29 2018 +0200

    Remove unused function from services
    
    Feature #13831
    
    Arvados-DCO-1.1-Signed-off-by: Michal Klobukowski <michal.klobukowski at contractors.roche.com>

diff --git a/src/services/services.ts b/src/services/services.ts
index d3e82f9..77afca9 100644
--- a/src/services/services.ts
+++ b/src/services/services.ts
@@ -2,7 +2,7 @@
 //
 // SPDX-License-Identifier: AGPL-3.0
 
-import Axios, { AxiosInstance } from "axios";
+import Axios from "axios";
 import { AuthService } from "./auth-service/auth-service";
 import { GroupsService } from "./groups-service/groups-service";
 import { ProjectService } from "./project-service/project-service";
@@ -14,8 +14,6 @@ import { CollectionFilesService } from "./collection-files-service/collection-fi
 import { KeepService } from "./keep-service/keep-service";
 import { WebDAV } from "../common/webdav";
 import { Config } from "../common/config";
-import { ResourceKind, Resource } from '~/models/resource';
-import { CommonResourceService } from '../common/api/common-resource-service';
 
 export type ServiceRepository = ReturnType<typeof createServices>;
 
@@ -50,15 +48,3 @@ export const createServices = (config: Config) => {
         collectionFilesService
     };
 };
-
-export const getResourceService = (resourceKind: ResourceKind, serviceRepository: ServiceRepository): undefined | CommonResourceService<Resource> => {
-    switch (resourceKind) {
-        case ResourceKind.PROJECT:
-            return serviceRepository.projectService;
-        case ResourceKind.COLLECTION:
-            return serviceRepository.collectionService;
-        default:
-            return undefined;
-    }
-};
-

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list