diff --git a/src/feat/feature-common-inl.h b/src/feat/feature-common-inl.h index ad8fa244982..b9c5794a629 100644 --- a/src/feat/feature-common-inl.h +++ b/src/feat/feature-common-inl.h @@ -56,20 +56,6 @@ void OfflineFeatureTpl::ComputeFeatures( } } -template -void OfflineFeatureTpl::ComputeFeatures( - const VectorBase &wave, - BaseFloat sample_freq, - BaseFloat vtln_warp, - Matrix *output) const { - OfflineFeatureTpl temp(*this); - // This const version of ComputeFeatures() is a wrapper that - // calls the non-const ComputeFeatures() on a temporary object - // that is a copy of *this. It is not as efficient because of the - // overhead of copying *this. - temp.ComputeFeatures(wave, vtln_warp, output); -} - template void OfflineFeatureTpl::Compute( const VectorBase &wave, diff --git a/src/feat/feature-common.h b/src/feat/feature-common.h index 1c83aed8ea9..45911cef585 100644 --- a/src/feat/feature-common.h +++ b/src/feat/feature-common.h @@ -152,16 +152,6 @@ class OfflineFeatureTpl { BaseFloat sample_freq, BaseFloat vtln_warp, Matrix *output); - /** - This const version of ComputeFeatures() is a wrapper that - calls the non-const ComputeFeatures() on a temporary object - that is a copy of *this. It is not as efficient because of the - overhead of copying *this. - */ - void ComputeFeatures(const VectorBase &wave, - BaseFloat sample_freq, - BaseFloat vtln_warp, - Matrix *output) const; int32 Dim() const { return computer_.Dim(); }