From 5ffe4ab235b027e54679d0ae71ee76d9ad483619 Mon Sep 17 00:00:00 2001 From: "rjwats@gmail.com" Date: Sat, 3 Mar 2018 18:17:46 +0000 Subject: [PATCH] remove some redundant code --- interface/src/containers/APConfiguration.js | 10 ---------- interface/src/containers/NTPConfiguration.js | 1 - 2 files changed, 11 deletions(-) diff --git a/interface/src/containers/APConfiguration.js b/interface/src/containers/APConfiguration.js index b014c83..051d64e 100644 --- a/interface/src/containers/APConfiguration.js +++ b/interface/src/containers/APConfiguration.js @@ -14,16 +14,6 @@ class APConfiguration extends Component { selectedTab: "apStatus", selectedNetwork: null }; - this.selectNetwork = this.selectNetwork.bind(this); - this.deselectNetwork = this.deselectNetwork.bind(this); - } - - selectNetwork(network) { - this.setState({ selectedTab: "wifiSettings", selectedNetwork:network }); - } - - deselectNetwork(network) { - this.setState({ selectedNetwork:null }); } handleTabChange = (event, selectedTab) => { diff --git a/interface/src/containers/NTPConfiguration.js b/interface/src/containers/NTPConfiguration.js index eaf3be1..c75dc70 100644 --- a/interface/src/containers/NTPConfiguration.js +++ b/interface/src/containers/NTPConfiguration.js @@ -14,7 +14,6 @@ class NTPConfiguration extends Component { }; } - handleTabChange = (event, selectedTab) => { this.setState({ selectedTab }); };