提交 05437700 编写于 作者: R Rachel Macfarlane

Remove unused code

上级 d835b9c2
......@@ -105,18 +105,6 @@ export class CommentsModel {
}
}
public getCommentsCount(): number {
let numComments = 0;
this.resourceCommentThreads.forEach(resource => {
numComments += resource.commentThreads.length;
resource.commentThreads.forEach(thread => {
numComments += thread.replies.length;
});
});
return numComments;
}
private addCommentThreads(commentThreads: CommentThread[]): void {
const commentThreadsByResource = new Map<string, ResourceWithCommentThreads>();
for (const group of groupBy(commentThreads, CommentsModel._compareURIs)) {
......
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
import { RawContextKey } from 'vs/platform/contextkey/common/contextkey';
export const CONTEXT_WEBVIEW_WIDGET_VISIBLE = new RawContextKey<boolean>('webviewWidgetVisible', false);
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册