<html lang='en'>
<head>
<meta content='text/html; charset=utf-8' http-equiv='Content-Type'>
<title>
GitLab
</title>
</meta>
</head>
<style>
  img {
    max-width: 100%;
    height: auto;
  }
  p.details {
    font-style:italic;
    color:#777
  }
  .footer p {
    font-size:small;
    color:#777
  }
  pre.commit-message {
    white-space: pre-wrap;
  }
  .file-stats a {
    text-decoration: none;
  }
  .file-stats .new-file {
    color: #090;
  }
  .file-stats .deleted-file {
    color: #B00;
  }
</style>
<body>
<div class='content'>
<h3>Andrew Price pushed to branch master at <a href="https://projects.sucs.org/arthur/mw">Justin Mitchell / mw</a></h3>
<h4>
Commits:
</h4>
<ul>
<li>
<strong><a href="https://projects.sucs.org/arthur/mw/commit/f4874663eae0a68e4de16f277580629716ab3070">f4874663</a></strong>
<div>
<span>by Andrew Price</span>
<i>at 2015-10-12T21:02:00Z</i>
</div>
<pre class='commit-message'>Remove some unused functions</pre>
</li>
</ul>
<h4>8 changed files:</h4>
<ul>
<li class='file-stats'>
<a href='#diff-0'>
src/client/who.c
</a>
</li>
<li class='file-stats'>
<a href='#diff-1'>
src/client/who.h
</a>
</li>
<li class='file-stats'>
<a href='#diff-2'>
src/gags.c
</a>
</li>
<li class='file-stats'>
<a href='#diff-3'>
src/gags.h
</a>
</li>
<li class='file-stats'>
<a href='#diff-4'>
src/server/servsock.c
</a>
</li>
<li class='file-stats'>
<a href='#diff-5'>
src/server/servsock.h
</a>
</li>
<li class='file-stats'>
<a href='#diff-6'>
src/str_util.c
</a>
</li>
<li class='file-stats'>
<a href='#diff-7'>
src/str_util.h
</a>
</li>
</ul>
<h4>Changes:</h4>
<li id='diff-0'>
<a href='https://projects.sucs.org/arthur/mw/commit/f4874663eae0a68e4de16f277580629716ab3070#diff-0'>
<strong>
src/client/who.c
</strong>
</a>
<hr>
<pre class="highlight"><code><span style="color: #000000;background-color: #ffdddd">--- a/src/client/who.c
</span><span style="color: #000000;background-color: #ddffdd">+++ b/src/client/who.c
</span><span style="color: #aaaaaa">@@ -30,27 +30,6 @@ extern struct person *user;
</span> extern struct room myroom;
 extern long userposn;
 
-/* called only by cmdline flags */
-void what_list(void) {
-       struct person   u;
-       int             ufile;
-       time_t          t;
-       char *          timestr;
-       
-       ufile=userdb_open(O_RDONLY);
-       if (ufile < 0) return; /* whoops */
-       
-       while (read(ufile, &u, sizeof(u))) {
-               if (! u_del(u.status)) {
-                       t = (time_t) u.dowhen;
-                       timestr = ctime(&t);
-                       timestr[strlen(timestr) - 1] = 0;       // Strip the \n
-                       if (u.dowhen && u.doing[0] != 0) printf("%s | %s %s (%s ago)\n", timestr, u.name, u.doing, itime(time(0)-u.dowhen));
-               }
-       }
-       close(ufile);
-}
-
 char *itime(unsigned long t)
 {
        static char out[7];
</code></pre>

<br>
</li>
<li id='diff-1'>
<a href='https://projects.sucs.org/arthur/mw/commit/f4874663eae0a68e4de16f277580629716ab3070#diff-1'>
<strong>
src/client/who.h
</strong>
</a>
<hr>
<pre class="highlight"><code><span style="color: #000000;background-color: #ffdddd">--- a/src/client/who.h
</span><span style="color: #000000;background-color: #ddffdd">+++ b/src/client/who.h
</span><span style="color: #aaaaaa">@@ -8,7 +8,6 @@ void check_copies(int32_t where);
</span> char *itime(unsigned long t);
 void display_wholist(int type);
 void update_wholist(ipc_message_t *msg);
-void what_list(void);
 char *part_who_talk(const char *text, int status);
 char *part_who(const char *text, int status);
 json_t * grab_wholist(void);
</code></pre>

<br>
</li>
<li id='diff-2'>
<a href='https://projects.sucs.org/arthur/mw/commit/f4874663eae0a68e4de16f277580629716ab3070#diff-2'>
<strong>
src/gags.c
</strong>
</a>
<hr>
<pre class="highlight"><code><span style="color: #000000;background-color: #ffdddd">--- a/src/gags.c
</span><span style="color: #000000;background-color: #ddffdd">+++ b/src/gags.c
</span><span style="color: #aaaaaa">@@ -442,12 +442,6 @@ int gag_code(const char *str)
</span>   return(0);
 }
 
-const char *ungag_name(unsigned long chatmode)
-{
-       int gnum = (chatmode & CM_GAGMASK) >> CM_GAGSHIFT;
-       return gag_type(gnum);
-}
-
 /***************************************************************
  * the gag filters
  */
</code></pre>

<br>
</li>
<li id='diff-3'>
<a href='https://projects.sucs.org/arthur/mw/commit/f4874663eae0a68e4de16f277580629716ab3070#diff-3'>
<strong>
src/gags.h
</strong>
</a>
<hr>
<pre class="highlight"><code><span style="color: #000000;background-color: #ffdddd">--- a/src/gags.h
</span><span style="color: #000000;background-color: #ddffdd">+++ b/src/gags.h
</span><span style="color: #aaaaaa">@@ -22,6 +22,5 @@ char * apply_gag(struct person *speaker, const char *text);
</span> GagInfo *gag_find(int num);
 int gag_code(const char *str);
 const char *gag_type(int type);
-const char *ungag_name(unsigned long chatmode);
 
 #endif /* GAGS_H */
</code></pre>

<br>
</li>
<li id='diff-4'>
<a href='https://projects.sucs.org/arthur/mw/commit/f4874663eae0a68e4de16f277580629716ab3070#diff-4'>
<strong>
src/server/servsock.c
</strong>
</a>
<hr>
<pre class="highlight"><code><span style="color: #000000;background-color: #ffdddd">--- a/src/server/servsock.c
</span><span style="color: #000000;background-color: #ddffdd">+++ b/src/server/servsock.c
</span><span style="color: #aaaaaa">@@ -509,25 +509,6 @@ void msg_attach_to_all(ipc_message_t *msg)
</span>   close(users_fd);
 }
 
-/* send copy to specific session/connection by PID */
-void msg_attach_to_pid(ipc_message_t *msg, uint32_t pid)
-{
-       struct list_head *pos;
-       list_for_each(pos, &connection_list) {
-               ipc_connection_t *c = list_entry(pos, ipc_connection_t, list);
-               if (c->state == IPCSTATE_VALID) {
-                       if (pid == 0) {
-                               /* broadcast */
-                               msg_attach(msg, c);
-                       } else
-                       if (pid == c->addr) {
-                               /* unicast */
-                               msg_attach(msg, c);
-                       }
-               }
-       }
-}
-
 /* send msg to all sessions of user idetified by userid/posn */
 int msg_attach_to_userid(ipc_message_t *msg, uint32_t userposn)
 {
</code></pre>

<br>
</li>
<li id='diff-5'>
<a href='https://projects.sucs.org/arthur/mw/commit/f4874663eae0a68e4de16f277580629716ab3070#diff-5'>
<strong>
src/server/servsock.h
</strong>
</a>
<hr>
<pre class="highlight"><code><span style="color: #000000;background-color: #ffdddd">--- a/src/server/servsock.h
</span><span style="color: #000000;background-color: #ddffdd">+++ b/src/server/servsock.h
</span><span style="color: #aaaaaa">@@ -11,7 +11,6 @@ void watch_mainsock(int mainsock);
</span> void write_socket(ipc_connection_t *conn);
 void process_msg(ipc_connection_t *conn, ipc_message_t *msg);
 void msg_attach_to_all(ipc_message_t *msg);
-void msg_attach_to_pid(ipc_message_t *msg, uint32_t pid);
 int msg_attach_to_userid(ipc_message_t *msg, uint32_t userposn);
 int msg_attach_to_username(ipc_message_t *msg, const char *username);
 void msg_attach_to_channel(ipc_message_t *msg, int channel, const char * exclude);
</code></pre>

<br>
</li>
<li id='diff-6'>
<a href='https://projects.sucs.org/arthur/mw/commit/f4874663eae0a68e4de16f277580629716ab3070#diff-6'>
<strong>
src/str_util.c
</strong>
</a>
<hr>
<pre class="highlight"><code><span style="color: #000000;background-color: #ffdddd">--- a/src/str_util.c
</span><span style="color: #000000;background-color: #ddffdd">+++ b/src/str_util.c
</span><span style="color: #aaaaaa">@@ -209,7 +209,7 @@ char *strip_colours(const char *text)
</span>                           }
                                k++;
                        }
-                       
<span style="color: #000000;background-color: #ddffdd">+
</span>                   continue;
                }
                new[j++]=text[i++];
<span style="color: #aaaaaa">@@ -218,18 +218,6 @@ char *strip_colours(const char *text)
</span>   return(new);
 }
 
-/* Strip any trailing quote characters (^a) that may have been left at the end
<span style="color: #000000;background-color: #ffdddd">- *  * of a buffer by snprintf() truncating a quoted string.
- *   */
</span>-void strip_quote(char *a)
-{
<span style="color: #000000;background-color: #ffdddd">-    char *end = a + strlen(a);
</span>-
<span style="color: #000000;background-color: #ffdddd">-    /* Step back through quote chars */
-    while (end > a && *(--end) == '\001')
-        *end = '\0';
</span>-}
-
 char *quotetext(const char *a)
 {
         int     count;
</code></pre>

<br>
</li>
<li id='diff-7'>
<a href='https://projects.sucs.org/arthur/mw/commit/f4874663eae0a68e4de16f277580629716ab3070#diff-7'>
<strong>
src/str_util.h
</strong>
</a>
<hr>
<pre class="highlight"><code><span style="color: #000000;background-color: #ffdddd">--- a/src/str_util.h
</span><span style="color: #000000;background-color: #ddffdd">+++ b/src/str_util.h
</span><span style="color: #aaaaaa">@@ -10,7 +10,6 @@ int allspace(char *in);
</span> void strlower(char *szString);
 void escprintf(const char *szFormat, ...);
 char *strip_colours(const char *text);
-void strip_quote(char *a);
 char *quotetext(const char *a);
 
 #endif /* STR_UTIL_H */
</code></pre>

<br>
</li>

</div>
<div class='footer' style='margin-top: 10px;'>
<p>

<br>
<a href="https://projects.sucs.org/arthur/mw/commit/f4874663eae0a68e4de16f277580629716ab3070">View it on GitLab</a>
<script type="application/ld+json">{"@context":"http://schema.org","@type":"EmailMessage","action":{"@type":"ViewAction","name":"View Commit","url":"https://projects.sucs.org/arthur/mw/commit/f4874663eae0a68e4de16f277580629716ab3070"}}</script>
</p>
</div>
</body>
</html>