From b78a52eac89a29e21e0f470e4c2d9284441c38a2 Mon Sep 17 00:00:00 2001 From: Vartan Benohanian Date: Tue, 14 Jul 2020 13:18:33 -0400 Subject: [PATCH] Remove unused function Signed-off-by: Vartan Benohanian --- comment.go | 9 --------- 1 file changed, 9 deletions(-) diff --git a/comment.go b/comment.go index 0f49eba..b61c4a3 100644 --- a/comment.go +++ b/comment.go @@ -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) {