@@ -12,8 +12,6 @@ namespace GitHub.Unity
1212 [ Serializable ]
1313 class HistoryView : Subview
1414 {
15- private const string HistoryFocusAll = "(All)" ;
16- private const string HistoryFocusSingle = "Focus: <b>{0}</b>" ;
1715 private const string PullButton = "Pull" ;
1816 private const string PullButtonCount = "Pull (<b>{0}</b>)" ;
1917 private const string PushButton = "Push" ;
@@ -48,7 +46,6 @@ class HistoryView : Subview
4846 [ NonSerialized ] private bool isBusy ;
4947
5048 [ SerializeField ] private Vector2 detailsScroll ;
51- [ SerializeField ] private Object historyTarget ;
5249 [ SerializeField ] private Vector2 scroll ;
5350 [ SerializeField ] private string selectionID ;
5451 [ SerializeField ] private int statusAhead ;
@@ -105,11 +102,7 @@ public override void Refresh()
105102
106103 public override void OnSelectionChange ( )
107104 {
108- if ( ! string . IsNullOrEmpty ( AssetDatabase . GetAssetPath ( Selection . activeObject ) ) )
109- {
110- historyTarget = Selection . activeObject ;
111- Refresh ( ) ;
112- }
105+
113106 }
114107
115108 public override void OnGUI ( )
@@ -220,20 +213,6 @@ public void OnEmbeddedGUI()
220213 // History toolbar
221214 GUILayout . BeginHorizontal ( EditorStyles . toolbar ) ;
222215 {
223- // Target indicator / clear button
224- EditorGUI . BeginDisabledGroup ( historyTarget == null ) ;
225- {
226- if ( GUILayout . Button (
227- historyTarget == null ? HistoryFocusAll : String . Format ( HistoryFocusSingle , historyTarget . name ) ,
228- Styles . HistoryToolbarButtonStyle )
229- )
230- {
231- historyTarget = null ;
232- Refresh ( ) ;
233- }
234- }
235- EditorGUI . EndDisabledGroup ( ) ;
236-
237216 GUILayout . FlexibleSpace ( ) ;
238217
239218 if ( isPublished )
@@ -436,7 +415,7 @@ private void ScrollTo(int index, float offset = 0f)
436415
437416 private LogEntryState GetEntryState ( int index )
438417 {
439- return historyTarget == null ? ( index < statusAhead ? LogEntryState . Local : LogEntryState . Normal ) : LogEntryState . Normal ;
418+ return index < statusAhead ? LogEntryState . Local : LogEntryState . Normal ;
440419 }
441420
442421 /// <summary>
0 commit comments