Browse Source

Removed redundant id build method

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@51888 15284696-431f-4ddb-bdfa-cd5b030d7da7
Soeren Gebbert 13 years ago
parent
commit
abbe0ba3b0

+ 0 - 24
lib/python/temporal/abstract_dataset.py

@@ -96,30 +96,6 @@ class abstract_dataset(object):
 	"""!Return the mapset"""
 	"""!Return the mapset"""
         return self.base.get_mapset()
         return self.base.get_mapset()
 
 
-    def build_id(name, mapset, layer=None):
-	"""!Build and return the id (primary key) based on name, mapset and layer of a dataset.
-	
-	   @param name: The name of the map
-	   @param mapset: The name of the mapset
-	   @param layer: The name of the layer (optional)
-	
-	   Return None in case the name can not be build (name or mapset are None)
-	"""
-	
-	if not name or not mapset:
-	    return None
-	    
-	# Make sure to extract the pure mapname
-	pure_name = name.split("@")[0].split(":")[0]
-	
-	if layer:
-	    return "%s:%s@%s"%(name, layer, mapset)
-	else:
-	    return "%s@%s"%(name, mapset)
-	
-	return None
-	
-
     def get_valid_time(self):
     def get_valid_time(self):
         """!Returns a tuple of the start, the end valid time, this can be either datetime or double values
         """!Returns a tuple of the start, the end valid time, this can be either datetime or double values
            @return A tuple of (start_time, end_time)
            @return A tuple of (start_time, end_time)

+ 0 - 1
lib/python/temporal/abstract_map_dataset.py

@@ -442,7 +442,6 @@ class abstract_map_dataset(temporal_map_relations):
         
         
         # Check if the name includes any mapset
         # Check if the name includes any mapset
 	if name.find("@") >= 0:
 	if name.find("@") >= 0:
-	    print name
 	    name, mapset = name.split("@")
 	    name, mapset = name.split("@")
 
 
         # Check for layer number in map name
         # Check for layer number in map name