Fix missing unused private function and add test for warning

```
defmodule Sample1 do
  def a, do: b
  defp b, do: nil
  defp c(x // 1), do: x
end
```

This should emit a warning.

And tests for such warnings.