mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-14 09:25:43 +01:00
remove unused functions
This commit is contained in:
@@ -8,7 +8,6 @@ import queryString from "query-string";
|
|||||||
import type { Group, PagedCollection } from "@scm-manager/ui-types";
|
import type { Group, PagedCollection } from "@scm-manager/ui-types";
|
||||||
import {
|
import {
|
||||||
fetchGroupsByPage,
|
fetchGroupsByPage,
|
||||||
fetchGroupsByLink,
|
|
||||||
getGroupsFromState,
|
getGroupsFromState,
|
||||||
isFetchGroupsPending,
|
isFetchGroupsPending,
|
||||||
getFetchGroupsFailure,
|
getFetchGroupsFailure,
|
||||||
@@ -45,8 +44,7 @@ type Props = {
|
|||||||
location: any,
|
location: any,
|
||||||
|
|
||||||
// dispatch functions
|
// dispatch functions
|
||||||
fetchGroupsByPage: (link: string, page: number, filter?: string) => void,
|
fetchGroupsByPage: (link: string, page: number, filter?: string) => void
|
||||||
fetchGroupsByLink: (link: string) => void
|
|
||||||
};
|
};
|
||||||
|
|
||||||
const styles = {
|
const styles = {
|
||||||
@@ -184,9 +182,6 @@ const mapDispatchToProps = dispatch => {
|
|||||||
return {
|
return {
|
||||||
fetchGroupsByPage: (link: string, page: number, filter?: string) => {
|
fetchGroupsByPage: (link: string, page: number, filter?: string) => {
|
||||||
dispatch(fetchGroupsByPage(link, page, filter));
|
dispatch(fetchGroupsByPage(link, page, filter));
|
||||||
},
|
|
||||||
fetchGroupsByLink: (link: string) => {
|
|
||||||
dispatch(fetchGroupsByLink(link));
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -9,8 +9,6 @@ import queryString from "query-string";
|
|||||||
import { withRouter } from "react-router-dom";
|
import { withRouter } from "react-router-dom";
|
||||||
import type { RepositoryCollection } from "@scm-manager/ui-types";
|
import type { RepositoryCollection } from "@scm-manager/ui-types";
|
||||||
import {
|
import {
|
||||||
fetchRepos,
|
|
||||||
fetchReposByLink,
|
|
||||||
fetchReposByPage,
|
fetchReposByPage,
|
||||||
getFetchReposFailure,
|
getFetchReposFailure,
|
||||||
getRepositoryCollection,
|
getRepositoryCollection,
|
||||||
@@ -45,9 +43,7 @@ type Props = {
|
|||||||
location: any,
|
location: any,
|
||||||
|
|
||||||
// dispatched functions
|
// dispatched functions
|
||||||
fetchRepos: string => void,
|
fetchReposByPage: (link: string, page: number, filter?: string) => void
|
||||||
fetchReposByPage: (link: string, page: number, filter?: string) => void,
|
|
||||||
fetchReposByLink: string => void
|
|
||||||
};
|
};
|
||||||
|
|
||||||
const styles = {
|
const styles = {
|
||||||
@@ -188,14 +184,8 @@ const mapStateToProps = (state, ownProps) => {
|
|||||||
|
|
||||||
const mapDispatchToProps = dispatch => {
|
const mapDispatchToProps = dispatch => {
|
||||||
return {
|
return {
|
||||||
fetchRepos: (link: string) => {
|
|
||||||
dispatch(fetchRepos(link));
|
|
||||||
},
|
|
||||||
fetchReposByPage: (link: string, page: number, filter?: string) => {
|
fetchReposByPage: (link: string, page: number, filter?: string) => {
|
||||||
dispatch(fetchReposByPage(link, page, filter));
|
dispatch(fetchReposByPage(link, page, filter));
|
||||||
},
|
|
||||||
fetchReposByLink: (link: string) => {
|
|
||||||
dispatch(fetchReposByLink(link));
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -9,7 +9,6 @@ import queryString from "query-string";
|
|||||||
import type { User, PagedCollection } from "@scm-manager/ui-types";
|
import type { User, PagedCollection } from "@scm-manager/ui-types";
|
||||||
import {
|
import {
|
||||||
fetchUsersByPage,
|
fetchUsersByPage,
|
||||||
fetchUsersByLink,
|
|
||||||
getUsersFromState,
|
getUsersFromState,
|
||||||
selectListAsCollection,
|
selectListAsCollection,
|
||||||
isPermittedToCreateUsers,
|
isPermittedToCreateUsers,
|
||||||
@@ -45,8 +44,7 @@ type Props = {
|
|||||||
location: any,
|
location: any,
|
||||||
|
|
||||||
// dispatch functions
|
// dispatch functions
|
||||||
fetchUsersByPage: (link: string, page: number, filter?: string) => void,
|
fetchUsersByPage: (link: string, page: number, filter?: string) => void
|
||||||
fetchUsersByLink: (link: string) => void
|
|
||||||
};
|
};
|
||||||
|
|
||||||
const styles = {
|
const styles = {
|
||||||
@@ -186,9 +184,6 @@ const mapDispatchToProps = dispatch => {
|
|||||||
return {
|
return {
|
||||||
fetchUsersByPage: (link: string, page: number, filter?: string) => {
|
fetchUsersByPage: (link: string, page: number, filter?: string) => {
|
||||||
dispatch(fetchUsersByPage(link, page, filter));
|
dispatch(fetchUsersByPage(link, page, filter));
|
||||||
},
|
|
||||||
fetchUsersByLink: (link: string) => {
|
|
||||||
dispatch(fetchUsersByLink(link));
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user