remove unused functions

This commit is contained in:
Sebastian Sdorra
2019-04-18 10:02:22 +02:00
parent 8533dfca4b
commit bfd59c1bac
3 changed files with 3 additions and 23 deletions

View File

@@ -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));
} }
}; };
}; };

View File

@@ -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));
} }
}; };
}; };

View File

@@ -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));
} }
}; };
}; };