Skip to content

Commit

Permalink
removing unused functions and references
Browse files Browse the repository at this point in the history
Signed-off-by: rajaspa <[email protected]>
  • Loading branch information
floydtree committed Jan 18, 2024
1 parent 424723c commit 1d8373f
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 196 deletions.
170 changes: 0 additions & 170 deletions lib/schema/examples.ex

This file was deleted.

5 changes: 0 additions & 5 deletions lib/schema_web/templates/page/class.html.eex
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,6 @@ limitations under the License.
<div class="text-secondary">
<%= raw description(@data) %>
</div>
<!--
<div class="mt-1">
<%= raw class_examples(@data) %>
</div>
-->
</div>
<div class="col-md-auto fixed-right mt-2">
<div class="navbar-expand-md">
Expand Down
21 changes: 0 additions & 21 deletions lib/schema_web/views/page_view.ex
Original file line number Diff line number Diff line change
Expand Up @@ -77,27 +77,6 @@ defmodule SchemaWeb.PageView do
"<a href='#{path}'>#{caption}</a>"
end

def class_examples(class) do
format_class_examples(class[:examples])
end

defp format_class_examples(nil) do
""
end

defp format_class_examples([]) do
""
end

defp format_class_examples(examples) do
[
"<strong>Examples: </strong>",
Enum.map_join(examples, ", ", fn {_uid, name, path} ->
"<a target='_blank' href='#{path}'>#{name}</a>"
end)
]
end

def format_profiles(nil) do
""
end
Expand Down

0 comments on commit 1d8373f

Please sign in to comment.