Merge "Remove unused gr-diff._getRangeString()"
This commit is contained in:
commit
a9fc5a9595
@ -482,20 +482,6 @@
|
||||
return contentEl.querySelector('gr-diff-comment-thread-group');
|
||||
},
|
||||
|
||||
/**
|
||||
* @param {string} commentSide
|
||||
* @param {!Object=} opt_range
|
||||
*/
|
||||
_getRangeString(commentSide, opt_range) {
|
||||
return opt_range ?
|
||||
'range-' +
|
||||
opt_range.startLine + '-' +
|
||||
opt_range.startChar + '-' +
|
||||
opt_range.endLine + '-' +
|
||||
opt_range.endChar + '-' +
|
||||
commentSide : 'line-' + commentSide;
|
||||
},
|
||||
|
||||
/**
|
||||
* Gets or creates a comment thread for a specific spot on a diff.
|
||||
* May include a range, if the comment is a range comment.
|
||||
|
@ -343,20 +343,6 @@ limitations under the License.
|
||||
});
|
||||
});
|
||||
|
||||
test('_getRangeString', () => {
|
||||
const side = 'PARENT';
|
||||
const range = {
|
||||
startLine: 1,
|
||||
startChar: 1,
|
||||
endLine: 1,
|
||||
endChar: 2,
|
||||
};
|
||||
assert.equal(element._getRangeString(side, range),
|
||||
'range-1-1-1-2-PARENT');
|
||||
assert.equal(element._getRangeString(side, null),
|
||||
'line-PARENT');
|
||||
}),
|
||||
|
||||
test('thread groups', () => {
|
||||
const contentEl = document.createElement('div');
|
||||
const commentSide = 'left';
|
||||
|
Loading…
Reference in New Issue
Block a user