Remove unused request fields
This commit is contained in:
4
main.go
4
main.go
@@ -102,7 +102,6 @@ type room struct {
|
|||||||
|
|
||||||
type watchState struct {
|
type watchState struct {
|
||||||
responseWriter http.ResponseWriter
|
responseWriter http.ResponseWriter
|
||||||
request *http.Request
|
|
||||||
flusher http.Flusher
|
flusher http.Flusher
|
||||||
room *room
|
room *room
|
||||||
client *client
|
client *client
|
||||||
@@ -112,7 +111,6 @@ type watchState struct {
|
|||||||
|
|
||||||
type presentState struct {
|
type presentState struct {
|
||||||
responseWriter http.ResponseWriter
|
responseWriter http.ResponseWriter
|
||||||
request *http.Request
|
|
||||||
flusher http.Flusher
|
flusher http.Flusher
|
||||||
room *room
|
room *room
|
||||||
controlChan chan *controlEvent
|
controlChan chan *controlEvent
|
||||||
@@ -553,7 +551,6 @@ func newWatchState(w http.ResponseWriter, r *http.Request) *watchState {
|
|||||||
|
|
||||||
ws := &watchState{
|
ws := &watchState{
|
||||||
responseWriter: w,
|
responseWriter: w,
|
||||||
request: r,
|
|
||||||
eventChan: make(chan *event, 100),
|
eventChan: make(chan *event, 100),
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -639,7 +636,6 @@ func newPresentState(w http.ResponseWriter, r *http.Request) *presentState {
|
|||||||
|
|
||||||
ps := &presentState{
|
ps := &presentState{
|
||||||
responseWriter: w,
|
responseWriter: w,
|
||||||
request: r,
|
|
||||||
controlChan: make(chan *controlEvent, 100),
|
controlChan: make(chan *controlEvent, 100),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user