aboutsummaryrefslogtreecommitdiff
path: root/src/sc_editor.c
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.me.uk>2018-10-20 10:09:38 +0200
committerThomas White <taw@bitwiz.me.uk>2018-10-20 10:09:38 +0200
commit73433f7ee0ca0d86edacbe8544e95911a9856ddd (patch)
tree240a195985a40e8bc7b92acf88d0428ec9635c3f /src/sc_editor.c
parentae183124e9317f3d183da746b93d75909c7b89b5 (diff)
Remove legacy API cruft
Diffstat (limited to 'src/sc_editor.c')
-rw-r--r--src/sc_editor.c20
1 files changed, 1 insertions, 19 deletions
diff --git a/src/sc_editor.c b/src/sc_editor.c
index 0bf2dc2..e95beb4 100644
--- a/src/sc_editor.c
+++ b/src/sc_editor.c
@@ -384,7 +384,7 @@ void sc_editor_ensure_cursor(SCEditor *e)
}
-void sc_editor_remove_cursor(SCEditor *e)
+static void sc_editor_remove_cursor(SCEditor *e)
{
e->cursor_frame = NULL;
e->cpos.para = 0;
@@ -1979,30 +1979,12 @@ void sc_editor_set_scblock(SCEditor *e, SCBlock *scblocks)
}
-SCBlock *sc_editor_get_scblock(SCEditor *e)
-{
- return e->scblocks;
-}
-
-
static void update_size_request(SCEditor *e)
{
gtk_widget_set_size_request(GTK_WIDGET(e), 0, e->h + 2.0*e->min_border);
}
-void sc_editor_set_size(SCEditor *e, int w, int h)
-{
- e->w = w;
- e->h = h;
- update_size_request(e);
- if ( gtk_widget_get_mapped(GTK_WIDGET(e)) ) {
- full_rerender(e);
- sc_editor_redraw(e);
- }
-}
-
-
void sc_editor_set_logical_size(SCEditor *e, double w, double h)
{
e->log_w = w;