mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-01 05:51:32 +01:00
Remove unused commented code
This commit is contained in:
@@ -287,69 +287,4 @@ export class ExtHostEditorTabs implements IExtHostEditorTabs {
|
||||
const tab = group.acceptTabDtoUpdate(tabDto);
|
||||
this._onDidChangeTab.fire(tab.apiObject);
|
||||
}
|
||||
|
||||
/**
|
||||
* Compares two groups determining if they're the same or different
|
||||
* @param group1 The first group to compare
|
||||
* @param group2 The second group to compare
|
||||
* @returns True if different, false otherwise
|
||||
*/
|
||||
// private groupDiff(group1: IEditorTabGroup | undefined, group2: IEditorTabGroup | undefined): boolean {
|
||||
// if (group1 === group2) {
|
||||
// return false;
|
||||
// }
|
||||
// // They would be reference equal if both undefined so one is undefined and one isn't hence different
|
||||
// if (!group1 || !group2) {
|
||||
// return true;
|
||||
// }
|
||||
// if (group1.isActive !== group2.isActive
|
||||
// || group1.viewColumn !== group2.viewColumn
|
||||
// || group1.tabs.length !== group2.tabs.length
|
||||
// ) {
|
||||
// return true;
|
||||
// }
|
||||
// for (let i = 0; i < group1.tabs.length; i++) {
|
||||
// if (this.tabDiff(group1.tabs[i], group2.tabs[i])) {
|
||||
// return true;
|
||||
// }
|
||||
// }
|
||||
// return false;
|
||||
// }
|
||||
|
||||
/**
|
||||
* Compares two tabs determining if they're the same or different
|
||||
* @param tab1 The first tab to compare
|
||||
* @param tab2 The second tab to compare
|
||||
* @returns True if different, false otherwise
|
||||
*/
|
||||
// private tabDiff(tab1: IEditorTab | undefined, tab2: IEditorTab | undefined): boolean {
|
||||
// if (tab1 === tab2) {
|
||||
// return false;
|
||||
// }
|
||||
// // They would be reference equal if both undefined so one is undefined and one isn't therefore they're different
|
||||
// if (!tab1 || !tab2) {
|
||||
// return true;
|
||||
// }
|
||||
// if (tab1.label !== tab2.label
|
||||
// || tab1.viewColumn !== tab2.viewColumn
|
||||
// || tab1.resource?.toString() !== tab2.resource?.toString()
|
||||
// || tab1.viewType !== tab2.viewType
|
||||
// || tab1.isActive !== tab2.isActive
|
||||
// || tab1.isPinned !== tab2.isPinned
|
||||
// || tab1.isDirty !== tab2.isDirty
|
||||
// || tab1.additionalResourcesAndViewTypes.length !== tab2.additionalResourcesAndViewTypes.length
|
||||
// ) {
|
||||
// return true;
|
||||
// }
|
||||
// for (let i = 0; i < tab1.additionalResourcesAndViewTypes.length; i++) {
|
||||
// const tab1Resource = tab1.additionalResourcesAndViewTypes[i].resource;
|
||||
// const tab2Resource = tab2.additionalResourcesAndViewTypes[i].resource;
|
||||
// const tab1viewType = tab1.additionalResourcesAndViewTypes[i].viewType;
|
||||
// const tab2viewType = tab2.additionalResourcesAndViewTypes[i].viewType;
|
||||
// if (tab1Resource?.toString() !== tab2Resource?.toString() || tab1viewType !== tab2viewType) {
|
||||
// return true;
|
||||
// }
|
||||
// }
|
||||
// return false;
|
||||
// }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user