[gnome-notes] note-obj: Remove unused code
- From: Isaque Galdino de Araujo <igaldino src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-notes] note-obj: Remove unused code
- Date: Tue, 15 Jun 2021 03:17:16 +0000 (UTC)
commit feb24a48fbbd0aedc80ecf6176b1cf8e3f269e5b
Author: Mohammed Sadiq <sadiq sadiqpk org>
Date: Sat Jun 5 13:08:51 2021 +0530
note-obj: Remove unused code
src/libbiji/biji-note-obj.c | 50 ---------------------------------------------
src/libbiji/biji-note-obj.h | 11 ----------
2 files changed, 61 deletions(-)
---
diff --git a/src/libbiji/biji-note-obj.c b/src/libbiji/biji-note-obj.c
index c2a3e5ed..5686233c 100644
--- a/src/libbiji/biji-note-obj.c
+++ b/src/libbiji/biji-note-obj.c
@@ -216,18 +216,6 @@ biji_note_obj_get_property (GObject *object,
}
}
-gboolean
-biji_note_obj_are_same (BijiNoteObj *note_a,
- BijiNoteObj *note_b)
-{
- BijiNoteObjPrivate *a_priv = biji_note_obj_get_instance_private (note_a);
- BijiNoteObjPrivate *b_priv = biji_note_obj_get_instance_private (note_b);
-
- return (g_strcmp0 (a_priv->path, b_priv->path) == 0 &&
- g_strcmp0 (a_priv->content, b_priv->content) == 0);
-
-}
-
/* First cancel timeout
* this func is most probably stupid it might exists (move file) */
static gboolean
@@ -903,17 +891,6 @@ biji_note_obj_editor_apply_format (BijiNoteObj *self,
biji_webkit_editor_apply_format (priv->editor, format);
}
-gboolean
-biji_note_obj_editor_has_selection (BijiNoteObj *self)
-{
- BijiNoteObjPrivate *priv = biji_note_obj_get_instance_private (self);
-
- if (biji_note_obj_is_opened (self))
- return biji_webkit_editor_has_selection (priv->editor);
-
- return FALSE;
-}
-
const char *
biji_note_obj_editor_get_selection (BijiNoteObj *self)
{
@@ -925,33 +902,6 @@ biji_note_obj_editor_get_selection (BijiNoteObj *self)
return NULL;
}
-void
-biji_note_obj_editor_cut (BijiNoteObj *self)
-{
- BijiNoteObjPrivate *priv = biji_note_obj_get_instance_private (self);
-
- if (biji_note_obj_is_opened (self))
- biji_webkit_editor_cut (priv->editor);
-}
-
-void
-biji_note_obj_editor_copy (BijiNoteObj *self)
-{
- BijiNoteObjPrivate *priv = biji_note_obj_get_instance_private (self);
-
- if (biji_note_obj_is_opened (self))
- biji_webkit_editor_copy (priv->editor);
-}
-
-void
-biji_note_obj_editor_paste (BijiNoteObj *self)
-{
- BijiNoteObjPrivate *priv = biji_note_obj_get_instance_private (self);
-
- if (biji_note_obj_is_opened (self))
- biji_webkit_editor_paste (priv->editor);
-}
-
static void
biji_note_obj_class_init (BijiNoteObjClass *klass)
{
diff --git a/src/libbiji/biji-note-obj.h b/src/libbiji/biji-note-obj.h
index 6024d693..28e44640 100644
--- a/src/libbiji/biji-note-obj.h
+++ b/src/libbiji/biji-note-obj.h
@@ -92,9 +92,6 @@ struct _BijiNoteObjClass
gboolean (*can_format) (BijiNoteObj *note);
};
-gboolean biji_note_obj_are_same (BijiNoteObj *note_a,
- BijiNoteObj *note_b);
-
gboolean biji_note_obj_set_mtime (BijiNoteObj *self,
gint64 time);
@@ -162,14 +159,6 @@ char *biji_note_obj_get_html (BijiNoteObj *self)
void biji_note_obj_editor_apply_format (BijiNoteObj *self,
int format);
-gboolean biji_note_obj_editor_has_selection (BijiNoteObj *self);
-
const char *biji_note_obj_editor_get_selection (BijiNoteObj *self);
-void biji_note_obj_editor_cut (BijiNoteObj *self);
-
-void biji_note_obj_editor_copy (BijiNoteObj *self);
-
-void biji_note_obj_editor_paste (BijiNoteObj *self);
-
G_END_DECLS
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]