From 316c088d1fda63bc250be51f733da37f516350da Mon Sep 17 00:00:00 2001 From: Tristan Matthews <tristan.matthews@savoirfairelinux.com> Date: Fri, 26 Aug 2011 16:19:16 -0400 Subject: [PATCH] Codec.h: removed unused function --- daemon/src/Codec.h | 32 +------------------------------- 1 file changed, 1 insertion(+), 31 deletions(-) diff --git a/daemon/src/Codec.h b/daemon/src/Codec.h index c432a039e3..0ddca0dbc3 100644 --- a/daemon/src/Codec.h +++ b/daemon/src/Codec.h @@ -30,7 +30,7 @@ #ifndef __SFL_CODEC_H__ #define __SFL_CODEC_H__ -#include <cc++/digest.h> +#include <cc++/config.h> // for types /** * Interface for both audio codecs as well as video codecs. @@ -65,36 +65,6 @@ class Codec * @return The bitrate for which this codec is configured // TODO deal with VBR case. */ virtual double getBitRate() const = 0; - - /** - * Build a unique hash code for identifying the codec uniquely. - * Note that if multiple implementations of codec are provided, - * one should override this function in order to avoid conflicting - * hash codes. - * - * Hash code is a CRC32 digest made from : - * MIME "." MIME SUBTYPE "." PAYLOAD TYPE "." PAYLOAD CLOCKRATE - * - * @return a unique hash code identifying this codec. - */ - virtual std::string hashCode() const { - ost::CRC32Digest digest; - - std::ostringstream os; - os << getMimeType() - << "." << getMimeSubtype() - << "." << getPayloadType() - << "." << getClockRate(); - - std::string concat = os.str(); - - digest.putDigest ( (const unsigned char*) concat.c_str(), concat.length()); - - std::ostringstream buffer; - buffer << digest; - - return buffer.str(); - } }; } -- GitLab