Remove unused code

This commit is contained in:
Dane Everitt 2020-05-03 21:31:02 -07:00
parent 2e055cf630
commit ee184768b8
No known key found for this signature in database
GPG Key ID: EEA66103B3D71F53

View File

@ -213,17 +213,6 @@ func rootCmdRun(*cobra.Command, []string) {
zap.S().Fatalw("failed to configure HTTP server", zap.Error(err)) zap.S().Fatalw("failed to configure HTTP server", zap.Error(err))
} }
} }
// r := &Router{
// token: c.AuthenticationToken,
// upgrader: websocket.Upgrader{
// // Ensure that the websocket request is originating from the Panel itself,
// // and not some other location.
// CheckOrigin: func(r *http.Request) bool {
// return r.Header.Get("Origin") == c.PanelLocation
// },
// },
// }
} }
// Execute calls cobra to handle cli commands // Execute calls cobra to handle cli commands