<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif;" dir="ltr">
<p style="margin-top:0;margin-bottom:0">Indeed that is correct. Many thanks for this.<br>
</p>
</div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> Guilherme Andrade <g@gandrade.net><br>
<b>Sent:</b> Friday, 5 January 2018 12:39:24 AM<br>
<b>To:</b> Technion<br>
<b>Cc:</b> erlang-questions@erlang.org<br>
<b>Subject:</b> Re: [erlang-questions] xref</font>
<div> </div>
</div>
<div>
<div dir="ltr"><br>
<div class="x_gmail_extra"><br>
<div class="x_gmail_quote">On 4 January 2018 at 04:46, Technion <span dir="ltr"><<a href="mailto:technion@lolware.net" target="_blank">technion@lolware.net</a>></span> wrote:<br>
<blockquote class="x_gmail_quote" style="margin:0px 0px 0px 0.8ex; border-left:1px solid rgb(204,204,204); padding-left:1ex">
<div dir="ltr">
<div id="x_gmail-m_-8225901293238906483divtagdefaultwrapper" dir="ltr" style="font-size:12pt; color:rgb(0,0,0); font-family:Calibri,Helvetica,sans-serif">
<p style="margin-top:0px; margin-bottom:0px">I'm wondering if I could get some advise regarding xref.</p>
<p style="margin-top:0px; margin-bottom:0px">I've found across a number of projects, anything using Cowboy triggers similar alerts for me to below:</p>
</div>
</div>
</blockquote>
<div><br>
</div>
</div>
I believe the example module you mentioned ('toppage_handler') implements the 'cowboy_handler' behaviour[1].
<br>
<br>
If '-behaviour(cowboy_handler).' were to be explicitly declared on 'toppage_handler', xref would realize that those unused functions are actually callbacks.<br>
<br>
</div>
<div class="x_gmail_extra"><br>
[1]: <a href="https://ninenines.eu/docs/en/cowboy/2.0/manual/cowboy_handler/">https://ninenines.eu/docs/en/cowboy/2.0/manual/cowboy_handler/</a><br clear="all">
<br>
-- <br>
<div class="x_gmail_signature">
<div dir="ltr">
<div>
<div dir="ltr">
<div>
<div dir="ltr">Guilherme<br>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>