Skip to content

Commit 3308f27

Browse files
committed
Remove dead code found by the type system
1 parent 71095dc commit 3308f27

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

lib/postgrex/protocol.ex

-15
Original file line numberDiff line numberDiff line change
@@ -1209,9 +1209,6 @@ defmodule Postgrex.Protocol do
12091209

12101210
{:disconnect, err, s} ->
12111211
{:disconnect, err, s}
1212-
1213-
{:error, %Postgrex.Error{} = err, s, buffer} ->
1214-
error_ready(s, status, err, buffer)
12151212
end
12161213
end
12171214

@@ -1319,10 +1316,6 @@ defmodule Postgrex.Protocol do
13191316

13201317
{:disconnect, err, s} ->
13211318
{:disconnect, err, s}
1322-
1323-
{:error, %Postgrex.Error{} = err, s, buffer} ->
1324-
status = new_status([], mode: :transaction)
1325-
error_ready(s, status, err, buffer)
13261319
end
13271320
end
13281321

@@ -2997,14 +2990,6 @@ defmodule Postgrex.Protocol do
29972990

29982991
{:disconnect, err, s} ->
29992992
{:disconnect, err, s}
3000-
3001-
{:error, %Postgrex.Error{} = err, s, buffer} ->
3002-
# We convert {:error, err, state} to {:error, state}
3003-
# so that DBConnection will disconnect during handle_begin/handle_rollback
3004-
# and will attempt to rollback during handle_commit
3005-
with {:error, _err, s} <- error_ready(s, status, err, buffer) do
3006-
{:error, s}
3007-
end
30082993
end
30092994
end
30102995

0 commit comments

Comments
 (0)