Remove unused function

Signed-off-by: Vartan Benohanian <vartanbeno@gmail.com>
This commit is contained in:
Vartan Benohanian 2020-07-14 13:18:33 -04:00
parent ec7e8abe8e
commit b78a52eac8

View File

@ -2,10 +2,8 @@ package reddit
import ( import (
"context" "context"
"fmt"
"net/http" "net/http"
"net/url" "net/url"
"strings"
) )
// CommentService handles communication with the comment // CommentService handles communication with the comment
@ -14,13 +12,6 @@ import (
// Reddit API docs: https://www.reddit.com/dev/api/#section_links_and_comments // Reddit API docs: https://www.reddit.com/dev/api/#section_links_and_comments
type CommentService service 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. // Submit submits a comment as a reply to a post, comment, or message.
// parentID is the full ID of the thing being replied to. // 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) { func (s *CommentService) Submit(ctx context.Context, parentID string, text string) (*Comment, *Response, error) {