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
f620b0d5
Commit
f620b0d5
authored
Aug 12, 2015
by
Piotr Szczesniak
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #12584 from wojtek-t/remove_unsed_code
Remove dead code
parents
5a2d85f9
1426418a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
13 deletions
+0
-13
etcd_helper.go
pkg/storage/etcd/etcd_helper.go
+0
-9
interfaces.go
pkg/storage/interfaces.go
+0
-4
No files found.
pkg/storage/etcd/etcd_helper.go
View file @
f620b0d5
...
...
@@ -176,15 +176,6 @@ func (h *etcdHelper) Delete(key string, out runtime.Object) error {
}
// Implements storage.Interface.
func
(
h
*
etcdHelper
)
RecursiveDelete
(
key
string
,
recursive
bool
)
error
{
key
=
h
.
prefixEtcdKey
(
key
)
startTime
:=
time
.
Now
()
_
,
err
:=
h
.
client
.
Delete
(
key
,
recursive
)
metrics
.
RecordEtcdRequestLatency
(
"delete"
,
"UNKNOWN"
,
startTime
)
return
err
}
// Implements storage.Interface.
func
(
h
*
etcdHelper
)
Watch
(
key
string
,
resourceVersion
uint64
,
filter
storage
.
FilterFunc
)
(
watch
.
Interface
,
error
)
{
key
=
h
.
prefixEtcdKey
(
key
)
w
:=
newEtcdWatcher
(
false
,
nil
,
filter
,
h
.
codec
,
h
.
versioner
,
nil
,
h
)
...
...
pkg/storage/interfaces.go
View file @
f620b0d5
...
...
@@ -92,10 +92,6 @@ type Interface interface {
// Delete removes the specified key and returns the value that existed at that spot.
Delete
(
key
string
,
out
runtime
.
Object
)
error
// RecursiveDelete removes the specified key.
// TODO: Get rid of this method and use Delete() instead.
RecursiveDelete
(
key
string
,
recursive
bool
)
error
// Watch begins watching the specified key. Events are decoded into API objects,
// and any items passing 'filter' are sent down to returned watch.Interface.
// resourceVersion may be used to specify what version to begin watching
...
...
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