Skip to content

Commit

Permalink
pkg: cleanup some unused code
Browse files Browse the repository at this point in the history
Signed-off-by: Alexander Morozov <[email protected]>
  • Loading branch information
LK4D4 committed Mar 31, 2016
1 parent b27f17c commit 07b568c
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 30 deletions.
7 changes: 2 additions & 5 deletions pkg/authorization/response.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,10 @@ import (
"bytes"
"encoding/json"
"fmt"
"github.com/Sirupsen/logrus"
"net"
"net/http"

"github.com/Sirupsen/logrus"
)

// ResponseModifier allows authorization plugins to read and modify the content of the http.response
Expand Down Expand Up @@ -51,10 +52,6 @@ func NewResponseModifier(rw http.ResponseWriter) ResponseModifier {
type responseModifier struct {
// The original response writer
rw http.ResponseWriter

r *http.Request

status int
// body holds the response body
body []byte
// header holds the response header
Expand Down
6 changes: 0 additions & 6 deletions pkg/ioutils/scheduler.go

This file was deleted.

13 changes: 0 additions & 13 deletions pkg/ioutils/scheduler_gccgo.go

This file was deleted.

2 changes: 0 additions & 2 deletions pkg/term/term.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@ type State struct {
type Winsize struct {
Height uint16
Width uint16
x uint16
y uint16
}

// StdStreams returns the standard streams (stdin, stdout, stedrr).
Expand Down
5 changes: 1 addition & 4 deletions pkg/term/term_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@ type State struct {
type Winsize struct {
Height uint16
Width uint16
x uint16
y uint16
}

const (
Expand Down Expand Up @@ -194,8 +192,7 @@ func GetWinsize(fd uintptr) (*Winsize, error) {
winsize := &Winsize{
Width: uint16(info.Window.Right - info.Window.Left + 1),
Height: uint16(info.Window.Bottom - info.Window.Top + 1),
x: 0,
y: 0}
}

return winsize, nil
}
Expand Down

0 comments on commit 07b568c

Please sign in to comment.