[gedit/wip/loader-saver: 3/16] GeditDocument: remove unused code
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit/wip/loader-saver: 3/16] GeditDocument: remove unused code
- Date: Fri, 27 Jun 2014 19:54:58 +0000 (UTC)
commit 3af3f857359a3b7f1827ebb234d6a6d85135b020
Author: Sébastien Wilmet <swilmet gnome org>
Date: Thu Jun 26 22:09:16 2014 +0200
GeditDocument: remove unused code
gedit/gedit-document.c | 11 -----------
gedit/gedit-document.h | 29 -----------------------------
2 files changed, 0 insertions(+), 40 deletions(-)
---
diff --git a/gedit/gedit-document.c b/gedit/gedit-document.c
index 0930bce..fe6412f 100644
--- a/gedit/gedit-document.c
+++ b/gedit/gedit-document.c
@@ -127,17 +127,6 @@ static GHashTable *allocated_untitled_numbers = NULL;
G_DEFINE_TYPE_WITH_PRIVATE (GeditDocument, gedit_document, GTK_SOURCE_TYPE_BUFFER)
-GQuark
-gedit_document_error_quark (void)
-{
- static GQuark quark = 0;
-
- if (G_UNLIKELY (quark == 0))
- quark = g_quark_from_static_string ("gedit_io_load_error");
-
- return quark;
-}
-
static gint
get_untitled_number (void)
{
diff --git a/gedit/gedit-document.h b/gedit/gedit-document.h
index 9600f88..70e1807 100644
--- a/gedit/gedit-document.h
+++ b/gedit/gedit-document.h
@@ -63,21 +63,6 @@ typedef enum
#define GEDIT_DOCUMENT_NEWLINE_TYPE_DEFAULT GEDIT_DOCUMENT_NEWLINE_TYPE_LF
#endif
-/**
- * GeditDocumentSaveFlags:
- * @GEDIT_DOCUMENT_SAVE_IGNORE_MTIME: save file despite external modifications.
- * @GEDIT_DOCUMENT_SAVE_IGNORE_BACKUP: write the file directly without attempting to backup.
- * @GEDIT_DOCUMENT_SAVE_PRESERVE_BACKUP: preserve previous backup file, needed to support autosaving.
- * @GEDIT_DOCUMENT_SAVE_IGNORE_INVALID_CHARS: do not save invalid characters.
- */
-typedef enum
-{
- GEDIT_DOCUMENT_SAVE_IGNORE_MTIME = 1 << 0,
- GEDIT_DOCUMENT_SAVE_IGNORE_BACKUP = 1 << 1,
- GEDIT_DOCUMENT_SAVE_PRESERVE_BACKUP = 1 << 2,
- GEDIT_DOCUMENT_SAVE_IGNORE_INVALID_CHARS= 1 << 3
-} GeditDocumentSaveFlags;
-
struct _GeditDocument
{
GtkSourceBuffer buffer;
@@ -103,20 +88,6 @@ struct _GeditDocumentClass
void (* saved) (GeditDocument *document);
};
-#define GEDIT_DOCUMENT_ERROR gedit_document_error_quark ()
-
-enum
-{
- GEDIT_DOCUMENT_ERROR_EXTERNALLY_MODIFIED,
- GEDIT_DOCUMENT_ERROR_CANT_CREATE_BACKUP, /* unused */
- GEDIT_DOCUMENT_ERROR_TOO_BIG,
- GEDIT_DOCUMENT_ERROR_ENCODING_AUTO_DETECTION_FAILED,
- GEDIT_DOCUMENT_ERROR_CONVERSION_FALLBACK,
- GEDIT_DOCUMENT_NUM_ERRORS
-};
-
-GQuark gedit_document_error_quark (void);
-
GType gedit_document_get_type (void) G_GNUC_CONST;
GeditDocument *gedit_document_new (void);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]