Merge branch '15020-collection-with-the-same-content-adress'
[arvados-workbench2.git] / src / store / public-favorites / public-favorites-actions.ts
index b5aa9fcef70d202bd0ddb2244577b2de86020ebb..50b9070baf0987ab6ec64c4624cf301dee96d02d 100644 (file)
@@ -9,8 +9,6 @@ import { checkPublicFavorite } from "./public-favorites-reducer";
 import { snackbarActions, SnackbarKind } from "~/store/snackbar/snackbar-actions";
 import { ServiceRepository } from "~/services/services";
 import { progressIndicatorActions } from "~/store/progress-indicator/progress-indicator-actions";
-import { getResource } from '~/store/resources/resources';
-import { LinkResource } from "~/models/link";
 
 export const publicFavoritesActions = unionize({
     TOGGLE_PUBLIC_FAVORITE: ofType<{ resourceUuid: string }>(),
@@ -69,12 +67,6 @@ export const updatePublicFavorites = (resourceUuids: string[]) =>
             });
     };
 
-export const getHeadUuid = (uuid: string) =>
-    (dispatch: Dispatch, getState: () => RootState, services: ServiceRepository) => {
-        const resource = getResource<LinkResource>(uuid)(getState().resources);
-        return resource!.headUuid;
-    };
-
 export const getIsAdmin = () =>
     (dispatch: Dispatch, getState: () => RootState, services: ServiceRepository) => {
         const resource = getState().auth.user!.isAdmin;