Skip to content

Commit

Permalink
chore: remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
leandrocp committed Nov 20, 2024
1 parent 4058a43 commit c2414f7
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions lib/beacon/runtime_css.ex
Original file line number Diff line number Diff line change
Expand Up @@ -7,25 +7,11 @@ defmodule Beacon.RuntimeCSS do
"""
alias Beacon.Types.Site

@doc """
Returns the CSS compiler config.
For Tailwind that would be the content of the tailwind config file,
or return an empty string `""` if the provided engine doesn't have a config file.
"""
@callback config(site :: Site.t()) :: String.t()

@doc """
Executes the compilation to generate the CSS for the site using the provided `:css_compiler` in `Beacon.Config`.
"""
@callback compile(site :: Site.t()) :: {:ok, String.t()} | {:error, any()}

@doc false
# TODO: compress and fetch from ETS
def config(site) when is_atom(site) do
Beacon.Config.fetch!(site).css_compiler.config(site)
end

@doc false
def compile(site) when is_atom(site) do
Beacon.Config.fetch!(site).css_compiler.compile(site)
Expand Down

0 comments on commit c2414f7

Please sign in to comment.