Skip to content

Commit 7c9f9c7

Browse files
src/continued_fraction.hcpp: removing an unused function
1 parent eda26a5 commit 7c9f9c7

File tree

2 files changed

+0
-11
lines changed

2 files changed

+0
-11
lines changed

src/continued_fraction.cpp

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -122,15 +122,6 @@ quotdiff_below_diagonal(const vector<double> &ps_coeffs, const size_t offset,
122122
offset_coeffs.resize(offset);
123123
}
124124

125-
/* decrease degree of CF keeping coeffs equal to original */
126-
void
127-
decrease_degree(const size_t decrement, ContinuedFraction &the_cf) {
128-
assert(decrement < the_cf.degree);
129-
the_cf.ps_coeffs.resize(the_cf.ps_coeffs.size() - decrement);
130-
the_cf.cf_coeffs.resize(the_cf.cf_coeffs.size() - decrement);
131-
the_cf.degree -= decrement;
132-
}
133-
134125
void
135126
truncate_degree(const size_t n_terms, ContinuedFraction &the_cf) {
136127
if (the_cf.degree < n_terms) {

src/continued_fraction.hpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,6 @@ struct ContinuedFraction {
5454

5555
// get continued fraction with lower degree
5656
void
57-
decrease_degree(const size_t decrement, ContinuedFraction &cf);
58-
void
5957
truncate_degree(const size_t truncated_degree, ContinuedFraction &cf);
6058

6159
std::ostream &

0 commit comments

Comments
 (0)