Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
3bacb04a
Commit
3bacb04a
authored
Jun 22, 2018
by
Cong Ding
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cleanup: remove deadcode
parent
eb5a26f8
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
3 additions
and
19 deletions
+3
-19
installer.go
staging/src/k8s.io/apiserver/pkg/endpoints/installer.go
+0
-7
etcd_watcher.go
...ing/src/k8s.io/apiserver/pkg/storage/etcd/etcd_watcher.go
+0
-4
store.go
staging/src/k8s.io/apiserver/pkg/storage/etcd3/store.go
+0
-5
parser.go
staging/src/k8s.io/client-go/util/jsonpath/parser.go
+3
-3
No files found.
staging/src/k8s.io/apiserver/pkg/endpoints/installer.go
View file @
3bacb04a
...
@@ -855,13 +855,6 @@ func appendIf(actions []action, a action, shouldAppend bool) []action {
...
@@ -855,13 +855,6 @@ func appendIf(actions []action, a action, shouldAppend bool) []action {
return
actions
return
actions
}
}
// Wraps a http.Handler function inside a restful.RouteFunction
func
routeFunction
(
handler
http
.
Handler
)
restful
.
RouteFunction
{
return
func
(
restReq
*
restful
.
Request
,
restResp
*
restful
.
Response
)
{
handler
.
ServeHTTP
(
restResp
.
ResponseWriter
,
restReq
.
Request
)
}
}
func
addParams
(
route
*
restful
.
RouteBuilder
,
params
[]
*
restful
.
Parameter
)
{
func
addParams
(
route
*
restful
.
RouteBuilder
,
params
[]
*
restful
.
Parameter
)
{
for
_
,
param
:=
range
params
{
for
_
,
param
:=
range
params
{
route
.
Param
(
param
)
route
.
Param
(
param
)
...
...
staging/src/k8s.io/apiserver/pkg/storage/etcd/etcd_watcher.go
View file @
3bacb04a
...
@@ -22,7 +22,6 @@ import (
...
@@ -22,7 +22,6 @@ import (
"net/http"
"net/http"
"reflect"
"reflect"
"sync"
"sync"
"time"
metav1
"k8s.io/apimachinery/pkg/apis/meta/v1"
metav1
"k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/runtime"
"k8s.io/apimachinery/pkg/runtime"
...
@@ -100,9 +99,6 @@ type etcdWatcher struct {
...
@@ -100,9 +99,6 @@ type etcdWatcher struct {
cache
etcdCache
cache
etcdCache
}
}
// watchWaitDuration is the amount of time to wait for an error from watch.
const
watchWaitDuration
=
100
*
time
.
Millisecond
// newEtcdWatcher returns a new etcdWatcher; if list is true, watch sub-nodes.
// newEtcdWatcher returns a new etcdWatcher; if list is true, watch sub-nodes.
// The versioner must be able to handle the objects that transform creates.
// The versioner must be able to handle the objects that transform creates.
func
newEtcdWatcher
(
list
bool
,
quorum
bool
,
include
includeFunc
,
pred
storage
.
SelectionPredicate
,
func
newEtcdWatcher
(
list
bool
,
quorum
bool
,
include
includeFunc
,
pred
storage
.
SelectionPredicate
,
...
...
staging/src/k8s.io/apiserver/pkg/storage/etcd3/store.go
View file @
3bacb04a
...
@@ -73,11 +73,6 @@ type store struct {
...
@@ -73,11 +73,6 @@ type store struct {
leaseManager
*
leaseManager
leaseManager
*
leaseManager
}
}
type
elemForDecode
struct
{
data
[]
byte
rev
uint64
}
type
objState
struct
{
type
objState
struct
{
obj
runtime
.
Object
obj
runtime
.
Object
meta
*
storage
.
ResponseMeta
meta
*
storage
.
ResponseMeta
...
...
staging/src/k8s.io/client-go/util/jsonpath/parser.go
View file @
3bacb04a
...
@@ -94,7 +94,7 @@ func (p *Parser) consumeText() string {
...
@@ -94,7 +94,7 @@ func (p *Parser) consumeText() string {
// next returns the next rune in the input.
// next returns the next rune in the input.
func
(
p
*
Parser
)
next
()
rune
{
func
(
p
*
Parser
)
next
()
rune
{
if
int
(
p
.
pos
)
>=
len
(
p
.
input
)
{
if
p
.
pos
>=
len
(
p
.
input
)
{
p
.
width
=
0
p
.
width
=
0
return
eof
return
eof
}
}
...
@@ -266,7 +266,7 @@ Loop:
...
@@ -266,7 +266,7 @@ Loop:
}
}
}
}
text
:=
p
.
consumeText
()
text
:=
p
.
consumeText
()
text
=
string
(
text
[
1
:
len
(
text
)
-
1
])
text
=
text
[
1
:
len
(
text
)
-
1
]
if
text
==
"*"
{
if
text
==
"*"
{
text
=
":"
text
=
":"
}
}
...
@@ -373,7 +373,7 @@ Loop:
...
@@ -373,7 +373,7 @@ Loop:
}
}
reg
:=
regexp
.
MustCompile
(
`^([^!<>=]+)([!<>=]+)(.+?)$`
)
reg
:=
regexp
.
MustCompile
(
`^([^!<>=]+)([!<>=]+)(.+?)$`
)
text
:=
p
.
consumeText
()
text
:=
p
.
consumeText
()
text
=
string
(
text
[
:
len
(
text
)
-
2
])
text
=
text
[
:
len
(
text
)
-
2
]
value
:=
reg
.
FindStringSubmatch
(
text
)
value
:=
reg
.
FindStringSubmatch
(
text
)
if
value
==
nil
{
if
value
==
nil
{
parser
,
err
:=
parseAction
(
"text"
,
text
)
parser
,
err
:=
parseAction
(
"text"
,
text
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment