Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-shell
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-shell
Commits
ea659265
Commit
ea659265
authored
Dec 17, 2018
by
Jacob Vosmaer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove unused vendored code
parent
5969bd06
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
84 deletions
+0
-84
go/vendor/gitlab.com/gitlab-org/gitaly-proto/go/helper/inforefs.go
.../gitlab.com/gitlab-org/gitaly-proto/go/helper/inforefs.go
+0
-32
go/vendor/gitlab.com/gitlab-org/gitaly-proto/go/helper/stream.go
...or/gitlab.com/gitlab-org/gitaly-proto/go/helper/stream.go
+0
-44
go/vendor/vendor.json
go/vendor/vendor.json
+0
-8
No files found.
go/vendor/gitlab.com/gitlab-org/gitaly-proto/go/helper/inforefs.go
deleted
100644 → 0
View file @
5969bd06
package
helper
import
(
"io"
pb
"gitlab.com/gitlab-org/gitaly-proto/go"
)
type
InfoRefsClient
interface
{
Recv
()
(
*
pb
.
InfoRefsResponse
,
error
)
}
type
InfoRefsClientWriterTo
struct
{
InfoRefsClient
}
func
(
clientReader
*
InfoRefsClientWriterTo
)
WriteTo
(
w
io
.
Writer
)
(
total
int64
,
err
error
)
{
for
{
response
,
err
:=
clientReader
.
Recv
()
if
err
==
io
.
EOF
{
return
total
,
nil
}
else
if
err
!=
nil
{
return
total
,
err
}
n
,
err
:=
w
.
Write
(
response
.
GetData
())
total
+=
int64
(
n
)
if
err
!=
nil
{
return
total
,
err
}
}
}
go/vendor/gitlab.com/gitlab-org/gitaly-proto/go/helper/stream.go
deleted
100644 → 0
View file @
5969bd06
package
helper
import
(
"io"
)
// NewReceiveReader turns receiver into an io.Reader. Errors from the
// receiver function are passed on unmodified. This means receiver should
// emit io.EOF when done.
func
NewReceiveReader
(
receiver
func
()
([]
byte
,
error
))
io
.
Reader
{
return
&
receiveReader
{
receiver
:
receiver
}
}
type
receiveReader
struct
{
receiver
func
()
([]
byte
,
error
)
data
[]
byte
err
error
}
func
(
rr
*
receiveReader
)
Read
(
p
[]
byte
)
(
int
,
error
)
{
if
len
(
rr
.
data
)
==
0
{
rr
.
data
,
rr
.
err
=
rr
.
receiver
()
}
n
:=
copy
(
p
,
rr
.
data
)
rr
.
data
=
rr
.
data
[
n
:
]
if
len
(
rr
.
data
)
==
0
{
return
n
,
rr
.
err
}
return
n
,
nil
}
// NewSendWriter turns sender into an io.Writer. The number of 'bytes
// written' reported back is always len(p).
func
NewSendWriter
(
sender
func
(
p
[]
byte
)
error
)
io
.
Writer
{
return
&
sendWriter
{
sender
:
sender
}
}
type
sendWriter
struct
{
sender
func
([]
byte
)
error
}
func
(
sw
*
sendWriter
)
Write
(
p
[]
byte
)
(
int
,
error
)
{
return
len
(
p
),
sw
.
sender
(
p
)
}
go/vendor/vendor.json
View file @
ea659265
...
...
@@ -76,14 +76,6 @@
"version"
:
"v1.3.0"
,
"versionExact"
:
"v1.3.0"
},
{
"checksumSHA1"
:
"GkeSZfXVbtAkBZOrswot19GJZqQ="
,
"path"
:
"gitlab.com/gitlab-org/gitaly-proto/go/helper"
,
"revision"
:
"ca09ca1e2da6dc957644fa95990e8a3d032d6252"
,
"revisionTime"
:
"2018-11-28T10:00:28Z"
,
"version"
:
"v1.3.0"
,
"versionExact"
:
"v1.3.0"
},
{
"checksumSHA1"
:
"oUtVvP0F/NLt9fen+qUoOnfQHv0="
,
"path"
:
"gitlab.com/gitlab-org/gitaly/auth"
,
...
...
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