From 5575260aee045a780590f11866248b168abc3b36 Mon Sep 17 00:00:00 2001 From: Marcel Otto Date: Fri, 2 Jun 2017 16:23:07 +0200 Subject: [PATCH] core: remove unnecessary Graph.add function clause --- lib/rdf/graph.ex | 8 -------- 1 file changed, 8 deletions(-) diff --git a/lib/rdf/graph.ex b/lib/rdf/graph.ex index 7242ca1..ed49b1f 100644 --- a/lib/rdf/graph.ex +++ b/lib/rdf/graph.ex @@ -97,14 +97,6 @@ defmodule RDF.Graph do @doc """ Adds triples to a `RDF.Graph`. """ - def add(graph, subject, predicate, objects) - - def add(graph, subject, predicate, objects) when is_list(objects) do - Enum.reduce objects, graph, fn (object, graph) -> - add(graph, subject, predicate, object) - end - end - def add(%RDF.Graph{name: name, descriptions: descriptions}, subject, predicate, object) do with subject = convert_subject(subject) do