diff options
Diffstat (limited to 'app/assets/javascripts/diffs/components/diff_view.vue')
-rw-r--r-- | app/assets/javascripts/diffs/components/diff_view.vue | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/app/assets/javascripts/diffs/components/diff_view.vue b/app/assets/javascripts/diffs/components/diff_view.vue index 641616a34f5..83984cdf0d0 100644 --- a/app/assets/javascripts/diffs/components/diff_view.vue +++ b/app/assets/javascripts/diffs/components/diff_view.vue @@ -10,7 +10,6 @@ import { getCommentedLines } from '~/notes/components/multiline_comment_utils'; import { hide } from '~/tooltips'; import { pickDirection } from '../utils/diff_line'; import DiffCommentCell from './diff_comment_cell.vue'; -import DiffLine from './diff_line.vue'; import DiffExpansionCell from './diff_expansion_cell.vue'; import DiffRow from './diff_row.vue'; import { isHighlighted } from './diff_row_utils'; @@ -19,7 +18,6 @@ export default { components: { DiffExpansionCell, DiffRow, - DiffLine, DiffCommentCell, DraftNote, }, @@ -48,11 +46,6 @@ export default { default: false, }, }, - data() { - return { - inlineFindingsExpandedLines: [], - }; - }, idState() { return { dragStart: null, @@ -87,9 +80,6 @@ export default { this.sastDiff?.added?.length > 0 ); }, - sastReportsInInlineDiff() { - return this.glFeatures.sastReportsInInlineDiff; - }, }, created() { this.onDragOverThrottled = throttle((line) => this.onDragOver(line), 100, { leading: true }); @@ -109,19 +99,6 @@ export default { } this.idState.dragStart = line; }, - hideInlineFindings(line) { - const index = this.inlineFindingsExpandedLines.indexOf(line); - if (index > -1) { - this.inlineFindingsExpandedLines.splice(index, 1); - } - }, - toggleCodeQualityFindings(line) { - if (!this.inlineFindingsExpandedLines.includes(line)) { - this.inlineFindingsExpandedLines.push(line); - } else { - this.hideInlineFindings(line); - } - }, onDragOver(line) { if (line.chunk !== this.idState.dragStart.chunk) return; @@ -266,12 +243,10 @@ export default { :is-last-highlighted-line="isLastHighlightedLine(line) || index === commentedLines.endLine" :inline="inline" :index="index" - :inline-findings-expanded="inlineFindingsExpandedLines.includes(getCodeQualityLine(line))" :file-line-coverage="fileLineCoverage" :coverage-loaded="coverageLoaded" @showCommentForm="(code) => singleLineComment(code, line)" @setHighlightedRow="setHighlightedRow" - @toggleCodeQualityFindings="toggleCodeQualityFindings" @toggleLineDiscussions=" ({ lineCode, expanded }) => toggleLineDiscussions({ lineCode, fileHash: diffFile.file_hash, expanded }) @@ -280,15 +255,6 @@ export default { @startdragging="onStartDragging" @stopdragging="onStopDragging" /> - <!-- Don't display InlineFindings expanded section when sastReportsInInlineDiff is false --> - <diff-line - v-if=" - inlineFindingsExpandedLines.includes(getCodeQualityLine(line)) && !sastReportsInInlineDiff - " - :key="line.line_code" - :line="line" - @hideInlineFindings="hideInlineFindings" - /> <div v-if="line.renderCommentRow" :key="`dcr-${line.line_code || index}`" |