good morning!!!!

Skip to content
Snippets Groups Projects
Verified Commit f35d147a authored by a's avatar a
Browse files

remove more unused

parent 302da6d9
No related branches found
No related tags found
No related merge requests found
Pipeline #23867 passed
...@@ -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)
......
...@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment