Merge "Remove unused gr-diff._getRangeString()"

This commit is contained in:
Kasper Nilsson 2018-08-22 19:01:52 +00:00 committed by Gerrit Code Review
commit a9fc5a9595
2 changed files with 0 additions and 28 deletions

View File

@ -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.

View File

@ -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';