aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Brumlow <mbrumlow@roblox.com>2020-03-20 10:38:35 -0700
committerMike Brumlow <mbrumlow@roblox.com>2020-03-20 10:38:35 -0700
commit18097565589b7059149aba6d9848e9c506e42765 (patch)
tree72a297b0ba2da79a90c8c7050df2c4a01976abd3
parent260f6e66e9734c01a2aa034d116b81ace62351a9 (diff)
Fixing function def to remove unused vars.
-rw-r--r--vterm-module.c5
-rw-r--r--vterm-module.h3
2 files changed, 3 insertions, 5 deletions
diff --git a/vterm-module.c b/vterm-module.c
index d01d353..a635427 100644
--- a/vterm-module.c
+++ b/vterm-module.c
@@ -299,7 +299,7 @@ static void refresh_lines(Term *term, emacs_env *env, int start_row,
emacs_value text = render_text(env, term, buffer, length, &lastCell);
insert(env, text);
length = 0;
- text = render_fake_newline(env, term, buffer, length, &lastCell);
+ text = render_fake_newline(env, term);
insert(env, text);
}
}
@@ -667,8 +667,7 @@ static emacs_value render_text(emacs_env *env, Term *term, char *buffer,
return text;
}
-static emacs_value render_fake_newline(emacs_env *env, Term *term, char *buffer,
- int len, VTermScreenCell *cell) {
+static emacs_value render_fake_newline(emacs_env *env, Term *term) {
emacs_value text;
text = env->make_string(env, "\n", 1);
diff --git a/vterm-module.h b/vterm-module.h
index b5e7ebe..752d744 100644
--- a/vterm-module.h
+++ b/vterm-module.h
@@ -90,8 +90,7 @@ static bool compare_cells(VTermScreenCell *a, VTermScreenCell *b);
static bool is_key(unsigned char *key, size_t len, char *key_description);
static emacs_value render_text(emacs_env *env, Term *term, char *string,
int len, VTermScreenCell *cell);
-static emacs_value render_fake_newline(emacs_env *env, Term *term, char *string,
- int len, VTermScreenCell *cell);
+static emacs_value render_fake_newline(emacs_env *env, Term *term);
static emacs_value color_to_rgb_string(emacs_env *env, Term *term,
VTermColor *color);