Skip to content
This repository was archived by the owner on Dec 5, 2024. It is now read-only.

Commit 6beaaeb

Browse files
Removing RepositoryUpdated event
1 parent ac085ea commit 6beaaeb

File tree

2 files changed

+0
-11
lines changed

2 files changed

+0
-11
lines changed

src/GitHub.Api/Git/Repository.cs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ public void Initialize(IRepositoryManager initRepositoryManager)
4848

4949
repositoryManager = initRepositoryManager;
5050
repositoryManager.OnCurrentBranchAndRemoteUpdated += RepositoryManager_OnCurrentBranchAndRemoteUpdated;
51-
repositoryManager.OnRepositoryUpdated += RepositoryManager_OnRepositoryUpdated;
5251
repositoryManager.OnLocalBranchListUpdated += RepositoryManager_OnLocalBranchListUpdated;
5352
repositoryManager.OnRemoteBranchListUpdated += RepositoryManager_OnRemoteBranchListUpdated;
5453

@@ -352,13 +351,6 @@ private void HandleBranchCacheUpdatedEvent(CacheUpdateEvent cacheUpdateEvent)
352351
LocalAndRemoteBranchListChanged?.Invoke(cacheUpdateEvent);
353352
}
354353

355-
private void RepositoryManager_OnRepositoryUpdated()
356-
{
357-
Logger.Trace("OnRepositoryUpdated");
358-
UpdateGitStatus();
359-
UpdateGitLog();
360-
}
361-
362354
private void UpdateGitStatus()
363355
{
364356
repositoryManager?.Status()

src/GitHub.Api/Git/RepositoryManager.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ public interface IRepositoryManager : IDisposable
1111
event Action<bool> OnIsBusyChanged;
1212
event Action<Dictionary<string, ConfigBranch>> OnLocalBranchListUpdated;
1313
event Action<Dictionary<string, ConfigRemote>, Dictionary<string, Dictionary<string, ConfigBranch>>> OnRemoteBranchListUpdated;
14-
event Action OnRepositoryUpdated;
1514

1615
void Initialize();
1716
void Start();
@@ -99,7 +98,6 @@ class RepositoryManager : IRepositoryManager
9998
public event Action<bool> OnIsBusyChanged;
10099
public event Action<Dictionary<string, ConfigBranch>> OnLocalBranchListUpdated;
101100
public event Action<Dictionary<string, ConfigRemote>, Dictionary<string, Dictionary<string, ConfigBranch>>> OnRemoteBranchListUpdated;
102-
public event Action OnRepositoryUpdated;
103101

104102
public RepositoryManager(IPlatform platform, IGitConfig gitConfig,
105103
IRepositoryWatcher repositoryWatcher, IGitClient gitClient,
@@ -326,7 +324,6 @@ private ITask HookupHandlers(ITask task, bool disableWatcher = false)
326324
private void Watcher_OnRepositoryChanged()
327325
{
328326
Logger.Trace("OnRepositoryChanged");
329-
OnRepositoryUpdated?.Invoke();
330327
}
331328

332329
private void Watcher_OnConfigChanged()

0 commit comments

Comments
 (0)