Remove unused function
Signed-off-by: Vartan Benohanian <vartanbeno@gmail.com>
This commit is contained in:
parent
ec7e8abe8e
commit
b78a52eac8
1 changed files with 0 additions and 9 deletions
|
@ -2,10 +2,8 @@ package reddit
|
|||
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"net/http"
|
||||
"net/url"
|
||||
"strings"
|
||||
)
|
||||
|
||||
// CommentService handles communication with the comment
|
||||
|
@ -14,13 +12,6 @@ import (
|
|||
// Reddit API docs: https://www.reddit.com/dev/api/#section_links_and_comments
|
||||
type CommentService service
|
||||
|
||||
func (s *CommentService) validateCommentID(id string) error {
|
||||
if strings.HasPrefix(id, kindComment+"_") {
|
||||
return nil
|
||||
}
|
||||
return fmt.Errorf("comment id %s does not start with %s_", id, kindComment)
|
||||
}
|
||||
|
||||
// Submit submits a comment as a reply to a post, comment, or message.
|
||||
// parentID is the full ID of the thing being replied to.
|
||||
func (s *CommentService) Submit(ctx context.Context, parentID string, text string) (*Comment, *Response, error) {
|
||||
|
|
Loading…
Reference in a new issue