diff --git a/src/components/BootstrapBlazor.DockView/Components/DockViewComponent.razor.cs b/src/components/BootstrapBlazor.DockView/Components/DockViewComponent.razor.cs
index de5a128e..4f97aca0 100644
--- a/src/components/BootstrapBlazor.DockView/Components/DockViewComponent.razor.cs
+++ b/src/components/BootstrapBlazor.DockView/Components/DockViewComponent.razor.cs
@@ -191,20 +191,4 @@ private async Task OnClickBar()
internal void SetVisible(bool visible) => Visible = visible;
internal void SetLock(bool isLock) => IsLock = isLock;
-
- ///
- ///
- ///
- ///
- protected override void Dispose(bool disposing)
- {
- base.Dispose(disposing);
-
- if (OnClickTitleBarCallback != null)
- {
- OnClickTitleBarCallback = null;
- }
-
- DockView.RemoveComponentState(Key);
- }
}
diff --git a/src/components/BootstrapBlazor.DockView/Components/DockViewTitleBar.razor.cs b/src/components/BootstrapBlazor.DockView/Components/DockViewTitleBar.razor.cs
index a774e7f8..a0f1c9a0 100644
--- a/src/components/BootstrapBlazor.DockView/Components/DockViewTitleBar.razor.cs
+++ b/src/components/BootstrapBlazor.DockView/Components/DockViewTitleBar.razor.cs
@@ -10,7 +10,7 @@ namespace BootstrapBlazor.Components;
/// DockView 标题栏组件
/// DockView title bar component
///
-public partial class DockViewTitleBar : IAsyncDisposable
+public partial class DockViewTitleBar
{
///
/// 获得/设置 标题前置图标点击回调方法,默认为 null
@@ -40,29 +40,4 @@ private async Task OnClickBar()
await OnClickBarCallback();
}
}
-
- ///
- ///
- ///
- ///
- ///
- protected virtual ValueTask DisposeAsync(bool disposing)
- {
- if (disposing)
- {
- OnClickBarCallback = null;
- }
-
- return ValueTask.CompletedTask;
- }
-
- ///
- ///
- ///
- ///
- public async ValueTask DisposeAsync()
- {
- await DisposeAsync(true);
- GC.SuppressFinalize(this);
- }
}