From 9e9cc49402665946d42dfb108b8c224e565bbcfe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Artur=20Zi=C4=99tkiewicz?= Date: Fri, 2 Jun 2023 11:55:12 +0200 Subject: [PATCH] Remove alias_reference tracer --- README.md | 2 +- lib/contexted/tracer.ex | 4 ---- mix.exs | 2 +- 3 files changed, 2 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 7cf6d28..f158887 100644 --- a/README.md +++ b/README.md @@ -62,7 +62,7 @@ Add the following to your `mix.exs` file: ```elixir defp deps do [ - {:contexted, "~> 0.1.3"} + {:contexted, "~> 0.1.4"} ] end ``` diff --git a/lib/contexted/tracer.ex b/lib/contexted/tracer.ex index 857f19a..67127ce 100644 --- a/lib/contexted/tracer.ex +++ b/lib/contexted/tracer.ex @@ -15,10 +15,6 @@ defmodule Contexted.Tracer do If so, raises an error with an appropriate message. """ @spec trace(tuple(), map()) :: :ok - def trace({action, _line_details, module}, env) when action in [:alias_reference] do - verify_modules_mismatch(env.module, module) - end - def trace({action, _meta, module, _name, _arity}, env) when action in [:imported_function, :remote_function, :remote_macro] do verify_modules_mismatch(env.module, module) diff --git a/mix.exs b/mix.exs index 241f09a..8151acd 100644 --- a/mix.exs +++ b/mix.exs @@ -6,7 +6,7 @@ defmodule Contexted.MixProject do app: :contexted, description: "Contexted is an Elixir library designed to streamline the management of complex Phoenix contexts in your projects, offering tools for module separation, subcontext creation, and auto-generating CRUD operations for improved code maintainability.", - version: "0.1.3", + version: "0.1.4", elixir: "~> 1.14", start_permanent: Mix.env() == :prod, deps: deps(),