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
c25a1be0
Commit
c25a1be0
authored
Apr 02, 2015
by
Daniel Smith
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #6345 from thockin/equalities_bug
Remove dead, buggy code
parents
cdd6d0f3
c63f4c71
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
17 deletions
+0
-17
deep_equal.go
pkg/conversion/deep_equal.go
+0
-17
No files found.
pkg/conversion/deep_equal.go
View file @
c25a1be0
...
@@ -71,23 +71,6 @@ func (e Equalities) AddFunc(eqFunc interface{}) error {
...
@@ -71,23 +71,6 @@ func (e Equalities) AddFunc(eqFunc interface{}) error {
return
nil
return
nil
}
}
// Equal return true if a matching equality function thinks a == b;
// if there is no matching equality function, it calls the standard
// go == operator.
func
(
e
Equalities
)
Equal
(
a
,
b
interface
{})
bool
{
av
,
bv
:=
reflect
.
ValueOf
(
a
),
reflect
.
ValueOf
(
a
)
if
!
av
.
IsValid
()
||
!
av
.
IsValid
()
{
return
av
.
IsValid
()
==
av
.
IsValid
()
}
if
av
.
Type
()
!=
av
.
Type
()
{
return
false
}
if
fv
,
ok
:=
e
[
av
.
Type
()];
ok
{
return
fv
.
Call
([]
reflect
.
Value
{
av
,
bv
})[
0
]
.
Bool
()
}
return
av
.
Interface
()
==
bv
.
Interface
()
}
// Below here is forked from go's reflect/deepequal.go
// Below here is forked from go's reflect/deepequal.go
// During deepValueEqual, must keep track of checks that are
// During deepValueEqual, must keep track of checks that are
...
...
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