@@ -12,8 +12,6 @@ namespace GitHub.Unity
12
12
[ Serializable ]
13
13
class HistoryView : Subview
14
14
{
15
- private const string HistoryFocusAll = "(All)" ;
16
- private const string HistoryFocusSingle = "Focus: <b>{0}</b>" ;
17
15
private const string PullButton = "Pull" ;
18
16
private const string PullButtonCount = "Pull (<b>{0}</b>)" ;
19
17
private const string PushButton = "Push" ;
@@ -48,7 +46,6 @@ class HistoryView : Subview
48
46
[ NonSerialized ] private bool isBusy ;
49
47
50
48
[ SerializeField ] private Vector2 detailsScroll ;
51
- [ SerializeField ] private Object historyTarget ;
52
49
[ SerializeField ] private Vector2 scroll ;
53
50
[ SerializeField ] private string selectionID ;
54
51
[ SerializeField ] private int statusAhead ;
@@ -99,10 +96,7 @@ public override void OnRepositoryChanged(IRepository oldRepository)
99
96
100
97
public override void OnSelectionChange ( )
101
98
{
102
- if ( ! string . IsNullOrEmpty ( AssetDatabase . GetAssetPath ( Selection . activeObject ) ) )
103
- {
104
- historyTarget = Selection . activeObject ;
105
- }
99
+
106
100
}
107
101
108
102
public override void OnGUI ( )
@@ -215,20 +209,6 @@ public void OnEmbeddedGUI()
215
209
// History toolbar
216
210
GUILayout . BeginHorizontal ( EditorStyles . toolbar ) ;
217
211
{
218
- // Target indicator / clear button
219
- EditorGUI . BeginDisabledGroup ( historyTarget == null ) ;
220
- {
221
- if ( GUILayout . Button (
222
- historyTarget == null ? HistoryFocusAll : String . Format ( HistoryFocusSingle , historyTarget . name ) ,
223
- Styles . HistoryToolbarButtonStyle )
224
- )
225
- {
226
- historyTarget = null ;
227
- Refresh ( ) ;
228
- }
229
- }
230
- EditorGUI . EndDisabledGroup ( ) ;
231
-
232
212
GUILayout . FlexibleSpace ( ) ;
233
213
234
214
if ( isPublished )
@@ -431,7 +411,7 @@ private void ScrollTo(int index, float offset = 0f)
431
411
432
412
private LogEntryState GetEntryState ( int index )
433
413
{
434
- return historyTarget == null ? ( index < statusAhead ? LogEntryState . Local : LogEntryState . Normal ) : LogEntryState . Normal ;
414
+ return index < statusAhead ? LogEntryState . Local : LogEntryState . Normal ;
435
415
}
436
416
437
417
/// <summary>
0 commit comments