Skip to content

Commit

Permalink
Removed FileListState.isActive prop
Browse files Browse the repository at this point in the history
  • Loading branch information
viktor-podzigun committed Jan 6, 2025
1 parent 5023e2f commit dea1ec1
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 7 deletions.
3 changes: 0 additions & 3 deletions src/FileListState.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import SortMode from "./sort/SortMode.mjs";
* readonly index: number;
* readonly currDir: FileListDir;
* readonly selectedNames: Set<string>;
* readonly isActive: boolean;
* readonly diskSpace?: number;
* readonly sort: FileListSort;
* }} FileListState
Expand All @@ -27,7 +26,6 @@ function FileListState() {
index: 0,
currDir: { path: "", isRoot: false, items: [] },
selectedNames: new Set(),
isActive: false,
sort: { mode: SortMode.Name, asc: true },
};
}
Expand Down Expand Up @@ -59,7 +57,6 @@ FileListState.isFileListState = (s) => {
typeof s.index === "number" &&
isFileListDir(s.currDir) &&
isSet(s.selectedNames) &&
typeof s.isActive === "boolean" &&
isFileListSort(s.sort)
);
};
Expand Down
2 changes: 0 additions & 2 deletions test/FileListState.test.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ describe("FileListState.test.mjs", () => {
index: 0,
currDir: { path: "", isRoot: false, items: [] },
selectedNames: new Set(),
isActive: false,
sort: { mode: SortMode.Name, asc: true },
});
});
Expand Down Expand Up @@ -126,7 +125,6 @@ describe("FileListState.test.mjs", () => {
false
);
assert.deepEqual(isFileListState({ ...s, selectedNames: null }), false);
assert.deepEqual(isFileListState({ ...s, isActive: "" }), false);
assert.deepEqual(isFileListState({ ...s, sort: "" }), false);
assert.deepEqual(isFileListState({ ...s, sort: {} }), false);
assert.deepEqual(isFileListState({ ...s, sort: undefined }), false);
Expand Down
2 changes: 0 additions & 2 deletions types/FileListState.d.mts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ export type FileListState = {
readonly index: number;
readonly currDir: FileListDir;
readonly selectedNames: Set<string>;
readonly isActive: boolean;
readonly diskSpace?: number;
readonly sort: FileListSort;
};
Expand All @@ -17,7 +16,6 @@ export type FileListSort = import("./sort/FileListSort.mjs").FileListSort;
* readonly index: number;
* readonly currDir: FileListDir;
* readonly selectedNames: Set<string>;
* readonly isActive: boolean;
* readonly diskSpace?: number;
* readonly sort: FileListSort;
* }} FileListState
Expand Down

0 comments on commit dea1ec1

Please sign in to comment.