diff options
| author | Quentin Rameau <quinq@fifth.space> | 2024-03-17 07:59:30 +0100 |
|---|---|---|
| committer | Quentin Rameau <quinq@fifth.space> | 2024-03-17 08:22:18 +0100 |
| commit | 2ea91766bbd2f0689df3fbc9793c10c4376c0389 (patch) | |
| tree | 6c64d752370cf34fe1b39b0d692cadd7e694e95a /webext-surf.c | |
| parent | 7513a622e3d0d0fd2cc1a372dd1fd8b087922691 (diff) | |
webext: Remove unused functions
Communication from web extension to surf isn't used,
this code can always be brought back if needed.
Diffstat (limited to 'webext-surf.c')
| -rw-r--r-- | webext-surf.c | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/webext-surf.c b/webext-surf.c index d2753b5..f09714e 100644 --- a/webext-surf.c +++ b/webext-surf.c @@ -19,23 +19,6 @@ static WebKitWebExtension *webext; static int sock; -static void -msgsurf(guint64 pageid, const char *s) -{ - static char msg[MSGBUFSZ]; - size_t sln = strlen(s); - int ret; - - if ((ret = snprintf(msg, sizeof(msg), "%c%s", pageid, s)) - >= sizeof(msg)) { - fprintf(stderr, "webext: msg: message too long: %d\n", ret); - return; - } - - if (send(sock, msg, ret, 0) < 0) - fprintf(stderr, "webext: error sending: %s\n", msg+1); -} - static gboolean readsock(GIOChannel *s, GIOCondition c, gpointer unused) { |