Skip to content

Commit

Permalink
[src] Remove unused code that caused Windows compile failure. Thx:@bt…
Browse files Browse the repository at this point in the history
  • Loading branch information
danpovey committed Nov 27, 2018
1 parent 21ffb84 commit 643623d
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 24 deletions.
14 changes: 0 additions & 14 deletions src/feat/feature-common-inl.h
Original file line number Diff line number Diff line change
Expand Up @@ -56,20 +56,6 @@ void OfflineFeatureTpl<F>::ComputeFeatures(
}
}

template <class F>
void OfflineFeatureTpl<F>::ComputeFeatures(
const VectorBase<BaseFloat> &wave,
BaseFloat sample_freq,
BaseFloat vtln_warp,
Matrix<BaseFloat> *output) const {
OfflineFeatureTpl<F> 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 <class F>
void OfflineFeatureTpl<F>::Compute(
const VectorBase<BaseFloat> &wave,
Expand Down
10 changes: 0 additions & 10 deletions src/feat/feature-common.h
Original file line number Diff line number Diff line change
Expand Up @@ -152,16 +152,6 @@ class OfflineFeatureTpl {
BaseFloat sample_freq,
BaseFloat vtln_warp,
Matrix<BaseFloat> *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<BaseFloat> &wave,
BaseFloat sample_freq,
BaseFloat vtln_warp,
Matrix<BaseFloat> *output) const;

int32 Dim() const { return computer_.Dim(); }

Expand Down

0 comments on commit 643623d

Please sign in to comment.