Skip to content

Commit

Permalink
Remove duplicate function
Browse files Browse the repository at this point in the history
  • Loading branch information
Noarkhh committed Sep 19, 2024
1 parent b5ee75b commit d6ce884
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions lib/ex_sdp/attribute/fmtp.ex
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ defmodule ExSDP.Attribute.FMTP do
# G7221
:bitrate,
# AAC
:stream_type,
:streamtype,
:config,
:mode,
:objecttype,
Expand Down Expand Up @@ -139,7 +139,7 @@ defmodule ExSDP.Attribute.FMTP do
# G7221
bitrate: non_neg_integer() | nil,
# AAC
stream_type: non_neg_integer() | nil,
streamtype: non_neg_integer() | nil,
config: binary() | nil,
mode: :generic | :CELP_cbr | :CELP_vbr | :AAC_lbr | :AAC_hbr | nil,
objecttype: non_neg_integer() | nil,
Expand Down Expand Up @@ -375,16 +375,6 @@ defmodule ExSDP.Attribute.FMTP do
do: {rest, %{fmtp | streamtype: value}}
end

defp parse_param(["streamtype=" <> value | rest], fmtp) do
with {:ok, value} <- Utils.parse_numeric_string(value),
do: {rest, %{fmtp | streamtype: value}}
end

defp parse_param(["streamtype=" <> value | rest], fmtp) do
with {:ok, value} <- Utils.parse_numeric_string(value),
do: {rest, %{fmtp | streamtype: value}}
end

defp parse_param(["config=" <> value | rest], fmtp) do
with {:ok, value} <- Utils.parse_config(value),
do: {rest, %{fmtp | config: value}}
Expand Down

0 comments on commit d6ce884

Please sign in to comment.