Fix missing unused private function and add test for warnings

```
defmodule Sample do
  def a, do: b
  defp b, do: nil
  defp c(x // 1), do: x
end
```

This should emit a warning because `c` is not called.

And added tests for such warnings.