File tree Expand file tree Collapse file tree 7 files changed +29
-14
lines changed Expand file tree Collapse file tree 7 files changed +29
-14
lines changed Original file line number Diff line number Diff line change 1
1
defmodule Behaviour do
2
2
@ moduledoc """
3
- WARNING: this module is deprecated .
3
+ Mechanism for handling behaviours .
4
4
5
- Instead of `defcallback/1` and `defmacrocallback/1`, the `@callback` and
6
- `@macrocallback` module attributes can be used (respectively). See the
7
- documentation for `Module` for more information on these attributes.
5
+ This module is deprecated. Instead of `defcallback/1` and
6
+ `defmacrocallback/1`, the `@callback` and `@macrocallback`
7
+ module attributes can be used (respectively). See the
8
+ documentation for `Module` for more information on these
9
+ attributes.
8
10
9
11
Instead of `MyModule.__behaviour__(:callbacks)`,
10
12
`MyModule.behaviour_info(:callbacks)` can be used.
11
13
"""
12
14
15
+ @ moduledoc deprecated: "Use @callback and @macrocallback attributes instead"
16
+
13
17
@ doc """
14
18
Defines a function callback according to the given type specification.
15
19
"""
Original file line number Diff line number Diff line change 1
1
defmodule Dict do
2
2
@ moduledoc ~S"""
3
- WARNING: this module is deprecated .
3
+ Generic API for dictionaries .
4
4
5
5
If you need a general dictionary, use the `Map` module.
6
6
If you need to manipulate keyword lists, use `Keyword`.
@@ -9,6 +9,8 @@ defmodule Dict do
9
9
`new` function in the respective modules.
10
10
"""
11
11
12
+ @ moduledoc deprecated: "Use Map or Keyword modules instead"
13
+
12
14
@ type key :: any
13
15
@ type value :: any
14
16
@ type t :: list | map
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ defmodule GenEvent do
4
4
# Functions from this module are deprecated in elixir_dispatch.
5
5
6
6
@ moduledoc """
7
- WARNING: this module is deprecated .
7
+ A event manager with event handlers behaviour .
8
8
9
9
If you are interested in implementing an event manager, please read the
10
10
"Alternatives" section below. If you have to implement an event handler to
@@ -43,6 +43,8 @@ defmodule GenEvent do
43
43
[`:gen_event`](http://erlang.org/doc/man/gen_event.html) Erlang module.
44
44
"""
45
45
46
+ @ moduledoc deprecated: "Use Erlang/OTP's :gen_event module instead"
47
+
46
48
@ callback init ( args :: term ) ::
47
49
{ :ok , state }
48
50
| { :ok , state , :hibernate }
Original file line number Diff line number Diff line change 1
1
defmodule HashDict do
2
2
@ moduledoc """
3
- WARNING: this module is deprecated .
3
+ Tuple-based HashDict implementation .
4
4
5
- Use the `Map` module instead.
5
+ This module is deprecated. Use the `Map` module instead.
6
6
"""
7
7
8
+ @ moduledoc deprecated: "Use Map instead"
9
+
8
10
# TODO: Remove by 2.0
9
11
10
12
use Dict
Original file line number Diff line number Diff line change 1
1
defmodule HashSet do
2
2
@ moduledoc """
3
- WARNING: this module is deprecated .
3
+ Tuple-based HashSet implementation .
4
4
5
- Use the `MapSet` module instead.
5
+ This module is deprecated. Use the `MapSet` module instead.
6
6
"""
7
7
8
- # TODO: Remove by 2.0
8
+ @ moduledoc deprecated: "Use MapSet instead"
9
9
10
10
@ node_bitmap 0b111
11
11
@ node_shift 3
Original file line number Diff line number Diff line change 1
1
defmodule Set do
2
2
@ moduledoc ~S"""
3
- WARNING: this module is deprecated .
3
+ Generic API for sets .
4
4
5
- Use the `MapSet` module instead.
5
+ This module is deprecated, use the `MapSet` module instead.
6
6
"""
7
7
8
+ @ moduledoc deprecated: "Use MapSet instead"
9
+
8
10
@ type value :: any
9
11
@ type values :: [ value ]
10
12
@ type t :: map
Original file line number Diff line number Diff line change 1
1
defmodule Supervisor.Spec do
2
2
@ moduledoc """
3
- WARNING: this module is deprecated .
3
+ Outdated functions for building child specifications .
4
4
5
5
The functions in this module are deprecated and they do not work
6
6
with the module-based child specs introduced in Elixir v1.5.
@@ -106,6 +106,9 @@ defmodule Supervisor.Spec do
106
106
107
107
"""
108
108
109
+ @ moduledoc deprecated:
110
+ "Use the new child specifications outlined in the Supervisor module instead"
111
+
109
112
# TODO: Deprecate all functions in this module on Elixir v1.8.
110
113
# Also deprecate entry in Supervisor.Default.
111
114
You can’t perform that action at this time.
0 commit comments