summaryrefslogtreecommitdiffstats
path: root/webapp/stores/integration_store.jsx
diff options
context:
space:
mode:
Diffstat (limited to 'webapp/stores/integration_store.jsx')
-rw-r--r--webapp/stores/integration_store.jsx30
1 files changed, 0 insertions, 30 deletions
diff --git a/webapp/stores/integration_store.jsx b/webapp/stores/integration_store.jsx
index ff01774e1..f1e86d881 100644
--- a/webapp/stores/integration_store.jsx
+++ b/webapp/stores/integration_store.jsx
@@ -91,36 +91,6 @@ class IntegrationStore extends EventEmitter {
return store.getState().entities.integrations.outgoingHooks[id];
}
- hasReceivedCommands(teamId) {
- const commands = store.getState().entities.integrations.commands;
-
- let hasTeam = false;
- Object.values(commands).forEach((command) => {
- if (command.team_id === teamId) {
- hasTeam = true;
- }
- });
-
- return hasTeam;
- }
-
- getCommands(teamId) {
- const commands = store.getState().entities.integrations.commands;
-
- const teamCommands = [];
- Object.values(commands).forEach((command) => {
- if (command.team_id === teamId) {
- teamCommands.push(command);
- }
- });
-
- return teamCommands;
- }
-
- getCommand(teamId, id) {
- return store.getState().entities.integrations.commands[id];
- }
-
hasReceivedOAuthApps() {
return Object.keys(store.getState().entities.integrations.oauthApps).length > 0;
}