Get rid of duplicate function.

Signed-off-by: Miika Turkia <[email protected]>
---
 xslt/MacDive.xslt | 13 +------------
 1 file changed, 1 insertion(+), 12 deletions(-)

diff --git a/xslt/MacDive.xslt b/xslt/MacDive.xslt
index e9a007a..21f827b 100644
--- a/xslt/MacDive.xslt
+++ b/xslt/MacDive.xslt
@@ -1,5 +1,6 @@
 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"; version="1.0">
   <xsl:strip-space elements="*"/>
+  <xsl:include href="commonTemplates.xsl"/>
   <xsl:output method="xml" indent="yes"/>
 
   <xsl:template match="/">
@@ -573,18 +574,6 @@
   </xsl:template>
   <!-- end convert weight -->
 
-  <xsl:template name="temperatureSamples">
-    <xsl:param name="units"/>
-    <xsl:choose>
-      <xsl:when test="$units = 'Imperial'">
-        <xsl:value-of select="count(descendant::temperature[. != 32])"/>
-      </xsl:when>
-      <xsl:otherwise>
-        <xsl:value-of select="count(descendant::temperature[. != 0])"/>
-      </xsl:otherwise>
-    </xsl:choose>
-  </xsl:template>
-
   <xsl:template name="pressureSamples">
     <xsl:value-of select="count(descendant::pressure[. &gt; 0])"/>
   </xsl:template>
-- 
2.1.4

_______________________________________________
subsurface mailing list
[email protected]
http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface

Reply via email to