Skip to content

Commit

Permalink
fix: remove unused method
Browse files Browse the repository at this point in the history
  • Loading branch information
rndlaine committed Nov 1, 2018
1 parent 86edf18 commit bbfbc6b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
6 changes: 0 additions & 6 deletions packages/core/botpress/src/web/actions/index.js
Expand Up @@ -174,12 +174,6 @@ export const fetchBotInformation = () => dispatch => {
})
}

export const changeBot = () => dispatch => {
if (window.BOTPRESS_XX) {
// TODO Change bot logic goes here. Waiting for multi-bots logic
}
}

// Modules
export const modulesReceived = createAction('MODULES/RECEIVED')
export const fetchModules = () => dispatch => {
Expand Down
4 changes: 2 additions & 2 deletions packages/core/botpress/src/web/components/Layout/Header.jsx
Expand Up @@ -11,7 +11,7 @@ import { logout } from '~/util/Auth'
import style from './Header.scss'
import { viewModeChanged } from '~/actions'
import PermissionsChecker from './PermissionsChecker'
import { changeBot, fetchBotInformation, fetchAllBots } from '../../actions'
import { fetchBotInformation, fetchAllBots } from '../../actions'

class Header extends React.Component {
state = {
Expand Down Expand Up @@ -95,6 +95,6 @@ const mapStateToProps = state => ({
})

const mapDispatchToProps = dispatch =>
bindActionCreators({ viewModeChanged, fetchBotInformation, changeBot, fetchAllBots }, dispatch)
bindActionCreators({ viewModeChanged, fetchBotInformation, fetchAllBots }, dispatch)

export default connect(mapStateToProps, mapDispatchToProps)(Header)

0 comments on commit bbfbc6b

Please sign in to comment.