Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
H
helm3
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
helm3
Commits
4418b1a2
Commit
4418b1a2
authored
Jan 05, 2017
by
Adam Reese
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ref(*): remove dead code
RIP
parent
8824eabf
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
0 additions
and
68 deletions
+0
-68
search_test.go
cmd/helm/search/search_test.go
+0
-2
parser.go
cmd/helm/strvals/parser.go
+0
-23
labels.go
pkg/storage/driver/labels.go
+0
-18
memory.go
pkg/storage/driver/memory.go
+0
-25
No files found.
cmd/helm/search/search_test.go
View file @
4418b1a2
...
@@ -50,8 +50,6 @@ func TestSortScore(t *testing.T) {
...
@@ -50,8 +50,6 @@ func TestSortScore(t *testing.T) {
}
}
}
}
var
testCacheDir
=
"../testdata/"
var
indexfileEntries
=
map
[
string
]
repo
.
ChartVersions
{
var
indexfileEntries
=
map
[
string
]
repo
.
ChartVersions
{
"niña"
:
{
"niña"
:
{
{
{
...
...
cmd/helm/strvals/parser.go
View file @
4418b1a2
...
@@ -216,29 +216,6 @@ func inMap(k rune, m map[rune]bool) bool {
...
@@ -216,29 +216,6 @@ func inMap(k rune, m map[rune]bool) bool {
return
ok
return
ok
}
}
func
(
t
*
parser
)
listVal
()
[]
rune
{
v
:=
[]
rune
{}
for
{
switch
r
,
_
,
e
:=
t
.
sc
.
ReadRune
();
{
case
e
!=
nil
:
// End of input or error with reader stops value parsing.
return
v
case
r
==
'\\'
:
//Escape char. Consume next and append.
next
,
_
,
e
:=
t
.
sc
.
ReadRune
()
if
e
!=
nil
{
return
v
}
v
=
append
(
v
,
next
)
case
r
==
','
:
//End of key. Consume ',' and return.
return
v
default
:
v
=
append
(
v
,
r
)
}
}
}
func
typedVal
(
v
[]
rune
)
interface
{}
{
func
typedVal
(
v
[]
rune
)
interface
{}
{
val
:=
string
(
v
)
val
:=
string
(
v
)
if
strings
.
EqualFold
(
val
,
"true"
)
{
if
strings
.
EqualFold
(
val
,
"true"
)
{
...
...
pkg/storage/driver/labels.go
View file @
4418b1a2
...
@@ -16,12 +16,6 @@ limitations under the License.
...
@@ -16,12 +16,6 @@ limitations under the License.
package
driver
package
driver
import
(
"bytes"
"fmt"
"io"
)
// labels is a map of key value pairs to be included as metadata in a configmap object.
// labels is a map of key value pairs to be included as metadata in a configmap object.
type
labels
map
[
string
]
string
type
labels
map
[
string
]
string
...
@@ -52,15 +46,3 @@ func (lbs *labels) fromMap(kvs map[string]string) {
...
@@ -52,15 +46,3 @@ func (lbs *labels) fromMap(kvs map[string]string) {
lbs
.
set
(
k
,
v
)
lbs
.
set
(
k
,
v
)
}
}
}
}
func
(
lbs
labels
)
dump
(
w
io
.
Writer
)
error
{
var
b
bytes
.
Buffer
fmt
.
Fprintln
(
&
b
,
"labels:"
)
for
k
,
v
:=
range
lbs
{
fmt
.
Fprintf
(
&
b
,
"
\t
- %q -> %q
\n
"
,
k
,
v
)
}
_
,
err
:=
w
.
Write
(
b
.
Bytes
())
return
err
}
pkg/storage/driver/memory.go
View file @
4418b1a2
...
@@ -17,9 +17,6 @@ limitations under the License.
...
@@ -17,9 +17,6 @@ limitations under the License.
package
driver
package
driver
import
(
import
(
"bytes"
"fmt"
"io"
"strconv"
"strconv"
"strings"
"strings"
"sync"
"sync"
...
@@ -153,28 +150,6 @@ func (mem *Memory) Delete(key string) (*rspb.Release, error) {
...
@@ -153,28 +150,6 @@ func (mem *Memory) Delete(key string) (*rspb.Release, error) {
}
}
}
}
func
(
mem
*
Memory
)
dump
(
w
io
.
Writer
)
error
{
var
b
bytes
.
Buffer
fmt
.
Fprintln
(
&
b
,
"memory:"
)
for
key
,
recs
:=
range
mem
.
cache
{
fmt
.
Fprintf
(
&
b
,
"
\t
# %q
\n
"
,
key
)
recs
.
Iter
(
func
(
index
int
,
r
*
record
)
bool
{
fmt
.
Fprintf
(
&
b
,
"
\t\t
- [%d] v%d (status = %s)
\n
"
,
index
,
r
.
rls
.
Version
,
r
.
rls
.
Info
.
Status
.
Code
,
)
return
true
})
}
_
,
err
:=
w
.
Write
(
b
.
Bytes
())
return
err
}
// wlock locks mem for writing
// wlock locks mem for writing
func
(
mem
*
Memory
)
wlock
()
func
()
{
func
(
mem
*
Memory
)
wlock
()
func
()
{
mem
.
Lock
()
mem
.
Lock
()
...
...
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