Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
git: Remove unused actions (#49901)
Dino61757aa02bdc
diff --git a/crates/git_ui/src/file_history_view.rs b/crates/git_ui/src/file_history_view.rsindex 9f60efe8ccc..0925828447b 100644--- a/crates/git_ui/src/file_history_view.rs+++ b/crates/git_ui/src/file_history_view.rs@@ -5,7 +5,7 @@ use git::{GitHostingProviderRegistry, GitRemote, parse_git_remote_url};use gpui::{AnyElement, AnyEntity, App, Asset, Context, Entity, EventEmitter, FocusHandle, Focusable,IntoElement, Render, ScrollStrategy, Task, UniformListScrollHandle, WeakEntity, Window,- actions, uniform_list,+ uniform_list,};use project::{Project, ProjectPath,@@ -24,16 +24,6 @@ use workspace::{use crate::commit_view::CommitView;-actions!(git, [ViewCommitFromHistory, LoadMoreHistory]);--pub fn init(cx: &mut App) {- cx.observe_new(|workspace: &mut Workspace, _window, _cx| {- workspace.register_action(|_workspace, _: &ViewCommitFromHistory, _window, _cx| {});- workspace.register_action(|_workspace, _: &LoadMoreHistory, _window, _cx| {});- })- .detach();-}-const PAGE_SIZE: usize = 50;pub struct FileHistoryView {diff --git a/crates/git_ui/src/git_ui.rs b/crates/git_ui/src/git_ui.rsindex ca7063d1833..e19eb8c21f9 100644--- a/crates/git_ui/src/git_ui.rs+++ b/crates/git_ui/src/git_ui.rs@@ -50,7 +50,6 @@ pub mod worktree_picker;pub fn init(cx: &mut App) {editor::set_blame_renderer(blame_ui::GitBlameRenderer, cx);commit_view::init(cx);- file_history_view::init(cx);cx.observe_new(|editor: &mut Editor, _, cx| {conflict_view::register_editor(editor, editor.buffer().clone(), cx);