mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-14 09:25:43 +01:00
removed unused function
This commit is contained in:
@@ -144,8 +144,7 @@ export default function reducer(
|
||||
|
||||
switch (action.type) {
|
||||
case FETCH_PLUGINS_SUCCESS:
|
||||
const t = normalizeByName(action.payload);
|
||||
return t;
|
||||
return normalizeByName(action.payload);
|
||||
case FETCH_PLUGIN_SUCCESS:
|
||||
return reducerByNames(state, action.payload);
|
||||
default:
|
||||
@@ -190,8 +189,3 @@ export function isFetchPluginPending(state: Object, name: string) {
|
||||
export function getFetchPluginFailure(state: Object, name: string) {
|
||||
return getFailure(state, FETCH_PLUGIN, name);
|
||||
}
|
||||
|
||||
export function getPermissionsLink(state: Object, name: string) {
|
||||
const plugin = getPlugin(state, name);
|
||||
return plugin && plugin._links ? plugin._links.permissions.href : undefined;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user