@@ -12,7 +12,6 @@ namespace GitHub.Unity
1212 [ Serializable ]
1313 class InitProjectView : Subview
1414 {
15- private const string NoRepoTitle = "No Git repository found for this project" ;
1615 private const string NoRepoDescription = "Initialize a Git repository to track changes and collaborate with others." ;
1716
1817 [ SerializeField ] private bool isBusy ;
@@ -32,35 +31,6 @@ public override void OnRepositoryChanged(IRepository oldRepository)
3231
3332 public override void OnGUI ( )
3433 {
35- var headerRect = EditorGUILayout . BeginHorizontal ( Styles . HeaderBoxStyle ) ;
36- {
37- GUILayout . Space ( 5 ) ;
38- GUILayout . BeginVertical ( GUILayout . Width ( 16 ) ) ;
39- {
40- GUILayout . Space ( 5 ) ;
41-
42- var iconRect = GUILayoutUtility . GetRect ( new GUIContent ( Styles . BigLogo ) , GUIStyle . none , GUILayout . Height ( 20 ) , GUILayout . Width ( 20 ) ) ;
43- iconRect . y = headerRect . center . y - ( iconRect . height / 2 ) ;
44- GUI . DrawTexture ( iconRect , Styles . BigLogo , ScaleMode . ScaleToFit ) ;
45-
46- GUILayout . Space ( 5 ) ;
47- }
48- GUILayout . EndVertical ( ) ;
49-
50- GUILayout . Space ( 5 ) ;
51-
52- GUILayout . BeginVertical ( ) ;
53- {
54- var headerContent = new GUIContent ( NoRepoTitle ) ;
55- var headerTitleRect = GUILayoutUtility . GetRect ( headerContent , Styles . HeaderTitleStyle ) ;
56- headerTitleRect . y = headerRect . center . y - ( headerTitleRect . height / 2 ) ;
57-
58- GUI . Label ( headerTitleRect , headerContent , Styles . HeaderTitleStyle ) ;
59- }
60- GUILayout . EndVertical ( ) ;
61- }
62- EditorGUILayout . EndHorizontal ( ) ;
63-
6434 GUILayout . BeginVertical ( Styles . GenericBoxStyle ) ;
6535 {
6636 GUILayout . FlexibleSpace ( ) ;
0 commit comments