From 5964ff41d5d67dc69dbb54b0bf488459005e4b98 Mon Sep 17 00:00:00 2001
From: Thorge Petersen <petersen@rz.uni-kiel.de>
Date: Mon, 3 Jul 2023 14:38:16 +0200
Subject: [PATCH] Removed duplicate code

---
 ckanext/odsh/profiles/odsh_dcat_de_profile.py | 21 -------------------
 1 file changed, 21 deletions(-)

diff --git a/ckanext/odsh/profiles/odsh_dcat_de_profile.py b/ckanext/odsh/profiles/odsh_dcat_de_profile.py
index 1f8063d3..517a6627 100644
--- a/ckanext/odsh/profiles/odsh_dcat_de_profile.py
+++ b/ckanext/odsh/profiles/odsh_dcat_de_profile.py
@@ -145,27 +145,6 @@ class ODSHDCATdeProfile(DCATdeProfile):
                                 created, datatype="http://www.w3.org/2001/XMLSchema#dateTime"))
                         )
 
-    def _add_modified_and_issued(self, dataset_dict, dataset_ref):
-        '''
-        Adds distributions last_modified and created values to
-        dcat:modified and dcat:issued.
-        '''
-        for distribution in self.g.objects(dataset_ref, DCAT.distribution):
-            for resource_dict in dataset_dict.get('resources', []):
-                # Match distribution in graph and distribution in ckan-dict
-                if str(distribution) == resource_uri(resource_dict):
-                    last_modified = resource_dict.get('last_modified', None)
-                    if last_modified:
-                        self.g.set(
-                            (distribution, DCT.modified, rdflib.Literal(
-                                last_modified, datatype="http://www.w3.org/2001/XMLSchema#dateTime"))
-                        )
-                    created = resource_dict.get('created', None)
-                    if created:
-                        self.g.set(
-                            (distribution, DCT.issued, rdflib.Literal(
-                                created, datatype="http://www.w3.org/2001/XMLSchema#dateTime"))
-                        )
     def _add_version(self, dataset_dict, dataset_ref):
         '''
         Adds CKAN isReplacedBy extra field to dublin core isReplacedBy and sets version information.
-- 
GitLab