good morning!!!!
Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
J
jrpc
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Harbor Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
open
jrpc
Commits
f35d147a
Verified
Commit
f35d147a
authored
Jul 20, 2023
by
a
Browse files
Options
Downloads
Patches
Plain Diff
remove more unused
parent
302da6d9
No related branches found
No related tags found
No related merge requests found
Pipeline
#23867
passed
Jul 20, 2023
Stage: test
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
pkg/codec/json.go
+0
-4
0 additions, 4 deletions
pkg/codec/json.go
pkg/codec/reqresp.go
+0
-12
0 additions, 12 deletions
pkg/codec/reqresp.go
with
0 additions
and
16 deletions
pkg/codec/json.go
+
0
−
4
View file @
f35d147a
...
@@ -177,10 +177,6 @@ func (m *Message) MarshalJSON() ([]byte, error) {
...
@@ -177,10 +177,6 @@ func (m *Message) MarshalJSON() ([]byte, error) {
return
buf
.
Bytes
(),
nil
return
buf
.
Bytes
(),
nil
}
}
func
(
msg
*
Message
)
isNotification
()
bool
{
return
msg
.
ID
==
nil
&&
len
(
msg
.
Method
)
>
0
}
func
(
msg
*
Message
)
String
()
string
{
func
(
msg
*
Message
)
String
()
string
{
b
,
_
:=
msg
.
MarshalJSON
()
b
,
_
:=
msg
.
MarshalJSON
()
return
string
(
b
)
return
string
(
b
)
...
...
This diff is collapsed.
Click to expand it.
pkg/codec/reqresp.go
+
0
−
12
View file @
f35d147a
...
@@ -76,18 +76,6 @@ func NewRequest(ctx context.Context, id *ID, method string, params any) (r *Requ
...
@@ -76,18 +76,6 @@ func NewRequest(ctx context.Context, id *ID, method string, params any) (r *Requ
return
NewRawRequest
(
ctx
,
id
,
method
,
raw
),
nil
return
NewRawRequest
(
ctx
,
id
,
method
,
raw
),
nil
}
}
func
(
r
*
Request
)
isNotification
()
bool
{
return
r
.
ID
==
nil
&&
len
(
r
.
Method
)
>
0
}
func
(
r
*
Request
)
isCall
()
bool
{
return
r
.
hasValidID
()
&&
len
(
r
.
Method
)
>
0
}
func
(
r
*
Request
)
hasValidID
()
bool
{
return
r
.
ID
!=
nil
&&
!
r
.
ID
.
IsNull
()
}
func
(
r
*
Request
)
ParamArray
(
a
...
any
)
error
{
func
(
r
*
Request
)
ParamArray
(
a
...
any
)
error
{
var
params
[]
json
.
RawMessage
var
params
[]
json
.
RawMessage
err
:=
json
.
Unmarshal
(
r
.
Params
,
&
params
)
err
:=
json
.
Unmarshal
(
r
.
Params
,
&
params
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment