cleanup unneed code.

Release Notes:

- N/A
This commit is contained in:
CharlesChen0823 2024-05-15 09:25:54 +08:00 committed by GitHub
parent ba26acc1ed
commit 1a358e203e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 13 deletions

View file

@ -12,7 +12,7 @@ use sqlez::{
statement::Statement,
};
use util::{unzip_option, ResultExt};
use util::ResultExt;
use uuid::Uuid;
use crate::WorkspaceId;
@ -777,7 +777,7 @@ impl WorkspaceDb {
children,
flexes,
} => {
let (parent_id, position) = unzip_option(parent);
let (parent_id, position) = parent.unzip();
let flex_string = flexes
.as_ref()
@ -828,7 +828,7 @@ impl WorkspaceDb {
))?((workspace_id, pane.active))?
.ok_or_else(|| anyhow!("Could not retrieve inserted pane_id"))?;
let (parent_id, order) = unzip_option(parent);
let (parent_id, order) = parent.unzip();
conn.exec_bound(sql!(
INSERT INTO center_panes(pane_id, parent_group_id, position)
VALUES (?, ?, ?)