@@ -493,56 +493,6 @@ func EditConversationComment(ctx *context.APIContext) {
493493 editConversationComment (ctx , * form )
494494}
495495
496- // EditConversationCommentDeprecated modify a comment of an conversation
497- func EditConversationCommentDeprecated (ctx * context.APIContext ) {
498- // swagger:operation PATCH /repos/{owner}/{repo}/conversations/{index}/comments/{id} conversation conversationEditCommentDeprecated
499- // ---
500- // summary: Edit a comment
501- // deprecated: true
502- // consumes:
503- // - application/json
504- // produces:
505- // - application/json
506- // parameters:
507- // - name: owner
508- // in: path
509- // description: owner of the repo
510- // type: string
511- // required: true
512- // - name: repo
513- // in: path
514- // description: name of the repo
515- // type: string
516- // required: true
517- // - name: index
518- // in: path
519- // description: this parameter is ignored
520- // type: integer
521- // required: true
522- // - name: id
523- // in: path
524- // description: id of the comment to edit
525- // type: integer
526- // format: int64
527- // required: true
528- // - name: body
529- // in: body
530- // schema:
531- // "$ref": "#/definitions/EditConversationCommentOption"
532- // responses:
533- // "200":
534- // "$ref": "#/responses/Comment"
535- // "204":
536- // "$ref": "#/responses/empty"
537- // "403":
538- // "$ref": "#/responses/forbidden"
539- // "404":
540- // "$ref": "#/responses/notFound"
541-
542- form := web .GetForm (ctx ).(* api.EditConversationCommentOption )
543- editConversationComment (ctx , * form )
544- }
545-
546496func editConversationComment (ctx * context.APIContext , form api.EditConversationCommentOption ) {
547497 comment , err := conversations_model .GetCommentByID (ctx , ctx .PathParamInt64 (":id" ))
548498 if err != nil {
@@ -621,45 +571,6 @@ func DeleteConversationComment(ctx *context.APIContext) {
621571 deleteConversationComment (ctx )
622572}
623573
624- // DeleteConversationCommentDeprecated delete a comment from an conversation
625- func DeleteConversationCommentDeprecated (ctx * context.APIContext ) {
626- // swagger:operation DELETE /repos/{owner}/{repo}/conversations/{index}/comments/{id} conversation conversationDeleteCommentDeprecated
627- // ---
628- // summary: Delete a comment
629- // deprecated: true
630- // parameters:
631- // - name: owner
632- // in: path
633- // description: owner of the repo
634- // type: string
635- // required: true
636- // - name: repo
637- // in: path
638- // description: name of the repo
639- // type: string
640- // required: true
641- // - name: index
642- // in: path
643- // description: this parameter is ignored
644- // type: integer
645- // required: true
646- // - name: id
647- // in: path
648- // description: id of comment to delete
649- // type: integer
650- // format: int64
651- // required: true
652- // responses:
653- // "204":
654- // "$ref": "#/responses/empty"
655- // "403":
656- // "$ref": "#/responses/forbidden"
657- // "404":
658- // "$ref": "#/responses/notFound"
659-
660- deleteConversationComment (ctx )
661- }
662-
663574func deleteConversationComment (ctx * context.APIContext ) {
664575 comment , err := conversations_model .GetCommentByID (ctx , ctx .PathParamInt64 (":id" ))
665576 if err != nil {
0 commit comments