[gnome-notes] webkit-editor: Remove unused code
- From: Isaque Galdino de Araujo <igaldino src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-notes] webkit-editor: Remove unused code
- Date: Tue, 15 Jun 2021 03:17:17 +0000 (UTC)
commit 2b0f6895498ce3ccbbcb4bb2673927be736db284
Author: Mohammed Sadiq <sadiq sadiqpk org>
Date: Sat Jun 5 13:11:00 2021 +0530
webkit-editor: Remove unused code
src/libbiji/editor/biji-webkit-editor.c | 18 ------------------
src/libbiji/editor/biji-webkit-editor.h | 6 ------
2 files changed, 24 deletions(-)
---
diff --git a/src/libbiji/editor/biji-webkit-editor.c b/src/libbiji/editor/biji-webkit-editor.c
index 94c38811..5f7a3c83 100644
--- a/src/libbiji/editor/biji-webkit-editor.c
+++ b/src/libbiji/editor/biji-webkit-editor.c
@@ -71,12 +71,6 @@ struct _BijiWebkitEditor
G_DEFINE_TYPE (BijiWebkitEditor, biji_webkit_editor, WEBKIT_TYPE_WEB_VIEW)
-gboolean
-biji_webkit_editor_has_selection (BijiWebkitEditor *self)
-{
- return self->has_text && self->selected_text && *self->selected_text;
-}
-
const gchar *
biji_webkit_editor_get_selection (BijiWebkitEditor *self)
{
@@ -200,18 +194,6 @@ biji_webkit_editor_apply_format (BijiWebkitEditor *self, gint format)
}
}
-void
-biji_webkit_editor_cut (BijiWebkitEditor *self)
-{
- webkit_web_view_execute_editing_command (WEBKIT_WEB_VIEW (self), WEBKIT_EDITING_COMMAND_CUT);
-}
-
-void
-biji_webkit_editor_copy (BijiWebkitEditor *self)
-{
- webkit_web_view_execute_editing_command (WEBKIT_WEB_VIEW (self), WEBKIT_EDITING_COMMAND_COPY);
-}
-
void
biji_webkit_editor_paste (BijiWebkitEditor *self)
{
diff --git a/src/libbiji/editor/biji-webkit-editor.h b/src/libbiji/editor/biji-webkit-editor.h
index 59e54be2..969a0749 100644
--- a/src/libbiji/editor/biji-webkit-editor.h
+++ b/src/libbiji/editor/biji-webkit-editor.h
@@ -34,14 +34,8 @@ BijiWebkitEditor * biji_webkit_editor_new (BijiNoteObj *note);
void biji_webkit_editor_apply_format (BijiWebkitEditor *self, gint format);
-gboolean biji_webkit_editor_has_selection (BijiWebkitEditor *self);
-
const gchar * biji_webkit_editor_get_selection (BijiWebkitEditor *self);
-void biji_webkit_editor_cut (BijiWebkitEditor *self);
-
-void biji_webkit_editor_copy (BijiWebkitEditor *self);
-
void biji_webkit_editor_paste (BijiWebkitEditor *self);
void biji_webkit_editor_undo (BijiWebkitEditor *self);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]