[Refactor]
Remove unused codes and a file. Rename file format .jsx to .js that was not intended.
This commit is contained in:
@@ -1,28 +0,0 @@
|
||||
// import { useStore_RestoreWindowGeometry } from "@store";
|
||||
// import { useStdoutToPython } from "@useStdoutToPython";
|
||||
|
||||
// export const useRestoreWindowGeometry = () => {
|
||||
// const { asyncStdoutToPython } = useStdoutToPython();
|
||||
// const { currentRestoreWindowGeometry, updateRestoreWindowGeometry, pendingRestoreWindowGeometry } = useStore_RestoreWindowGeometry();
|
||||
|
||||
// const getRestoreWindowGeometry = () => {
|
||||
// pendingRestoreWindowGeometry();
|
||||
// asyncStdoutToPython("/get/data/restore_main_window_geometry");
|
||||
// };
|
||||
|
||||
// const toggleRestoreWindowGeometry = () => {
|
||||
// pendingRestoreWindowGeometry();
|
||||
// if (currentRestoreWindowGeometry.data) {
|
||||
// asyncStdoutToPython("/set/disable/restore_main_window_geometry");
|
||||
// } else {
|
||||
// asyncStdoutToPython("/set/enable/restore_main_window_geometry");
|
||||
// }
|
||||
// };
|
||||
|
||||
// return {
|
||||
// currentRestoreWindowGeometry,
|
||||
// getRestoreWindowGeometry,
|
||||
// toggleRestoreWindowGeometry,
|
||||
// updateRestoreWindowGeometry,
|
||||
// };
|
||||
// };
|
||||
@@ -32,10 +32,7 @@ const generatePropertyNames = (base_name) => ({
|
||||
pending: `pending${base_name}`,
|
||||
current: `current${base_name}`,
|
||||
update: `update${base_name}`,
|
||||
updatePart: `updatePart${base_name}`,
|
||||
async_update: `asyncUpdate${base_name}`,
|
||||
add: `add${base_name}`,
|
||||
async_add: `asyncAdd${base_name}`,
|
||||
});
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user