[gitg] No need to expose open/create/close in app interface
- From: Ignacio Casal Quinteiro <icq src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gitg] No need to expose open/create/close in app interface
- Date: Wed, 13 Mar 2013 13:47:02 +0000 (UTC)
commit 5a6ae564ea348bd56c72c4ff878715f7c4b893a8
Author: Ignacio Casal Quinteiro <icq gnome org>
Date: Wed Mar 13 14:46:16 2013 +0100
No need to expose open/create/close in app interface
gitg/gitg-window.vala | 13 +------------
libgitg-ext/gitg-ext-application.vala | 22 ----------------------
2 files changed, 1 insertions(+), 34 deletions(-)
---
diff --git a/gitg/gitg-window.vala b/gitg/gitg-window.vala
index 2bf32dd..cbdba9c 100644
--- a/gitg/gitg-window.vala
+++ b/gitg/gitg-window.vala
@@ -84,7 +84,6 @@ public class Window : Gtk.ApplicationWindow, GitgExt.Application, Initable, Gtk.
owned get { return d_repository; }
set
{
- close();
d_repository = value;
notify_property("repository");
@@ -398,7 +397,7 @@ public class Window : Gtk.ApplicationWindow, GitgExt.Application, Initable, Gtk.
}
}
- public void open(File path)
+ private void open(File path)
{
File repo;
Gitg.Repository? repository = null;
@@ -427,16 +426,6 @@ public class Window : Gtk.ApplicationWindow, GitgExt.Application, Initable, Gtk.
this.repository = repository;
}
-
- public void create(File path)
- {
- // TODO
- }
-
- public void close()
- {
- // TODO
- }
}
}
diff --git a/libgitg-ext/gitg-ext-application.vala b/libgitg-ext/gitg-ext-application.vala
index 0d86ed3..7b4b311 100644
--- a/libgitg-ext/gitg-ext-application.vala
+++ b/libgitg-ext/gitg-ext-application.vala
@@ -54,28 +54,6 @@ public interface Application : Object
* given id exists.
*/
public abstract GitgExt.View? view(string id);
-
- /**
- * Open an existing repository.
- *
- * @param repository the path to the repository to open.
- *
- */
- public abstract void open(File repository);
-
- /**
- * Create and open a new repository.
- *
- * @param repository the path at which the new repository is to be created.
- *
- */
- public abstract void create(File repository);
-
- /**
- * Close the currently open repository.
- *
- **/
- public abstract void close();
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]