@@ -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 ;
@@ -105,11 +102,7 @@ public override void Refresh()
105
102
106
103
public override void OnSelectionChange ( )
107
104
{
108
- if ( ! string . IsNullOrEmpty ( AssetDatabase . GetAssetPath ( Selection . activeObject ) ) )
109
- {
110
- historyTarget = Selection . activeObject ;
111
- Refresh ( ) ;
112
- }
105
+
113
106
}
114
107
115
108
public override void OnGUI ( )
@@ -220,20 +213,6 @@ public void OnEmbeddedGUI()
220
213
// History toolbar
221
214
GUILayout . BeginHorizontal ( EditorStyles . toolbar ) ;
222
215
{
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
-
237
216
GUILayout . FlexibleSpace ( ) ;
238
217
239
218
if ( isPublished )
@@ -436,7 +415,7 @@ private void ScrollTo(int index, float offset = 0f)
436
415
437
416
private LogEntryState GetEntryState ( int index )
438
417
{
439
- return historyTarget == null ? ( index < statusAhead ? LogEntryState . Local : LogEntryState . Normal ) : LogEntryState . Normal ;
418
+ return index < statusAhead ? LogEntryState . Local : LogEntryState . Normal ;
440
419
}
441
420
442
421
/// <summary>
0 commit comments