Skip to content

Remove unused C++ code. #11676

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 17, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
57 changes: 0 additions & 57 deletions src/_image.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -116,60 +116,3 @@ void _bin_indices(int *irows, int nrows, const double *y, unsigned long ny, doub
}
}
}

void _bin_indices_linear(
float *arows, int *irows, int nrows, double *y, unsigned long ny, double sc, double offs)
{
int i;
if (sc * (y[ny - 1] - y[0]) > 0) {
int ii = 0;
int iilast = (int)ny - 1;
int iy0 = (int)floor(sc * (y[ii] - offs));
int iy1 = (int)floor(sc * (y[ii + 1] - offs));
float invgap = 1.0f / (iy1 - iy0);
for (i = 0; i < nrows && i < iy0; i++) {
irows[i] = -1;
}
for (; i < nrows; i++) {
while (i > iy1 && ii < iilast) {
ii++;
iy0 = iy1;
iy1 = (int)floor(sc * (y[ii + 1] - offs));
invgap = 1.0f / (iy1 - iy0);
}
if (i >= iy0 && i <= iy1) {
irows[i] = ii;
arows[i] = (iy1 - i) * invgap;
} else
break;
}
for (; i < nrows; i++) {
irows[i] = -1;
}
} else {
int iilast = (int)ny - 1;
int ii = iilast;
int iy0 = (int)floor(sc * (y[ii] - offs));
int iy1 = (int)floor(sc * (y[ii - 1] - offs));
float invgap = 1.0f / (iy1 - iy0);
for (i = 0; i < nrows && i < iy0; i++) {
irows[i] = -1;
}
for (; i < nrows; i++) {
while (i > iy1 && ii > 1) {
ii--;
iy0 = iy1;
iy1 = (int)floor(sc * (y[ii - 1] - offs));
invgap = 1.0f / (iy1 - iy0);
}
if (i >= iy0 && i <= iy1) {
irows[i] = ii - 1;
arows[i] = (i - iy0) * invgap;
} else
break;
}
for (; i < nrows; i++) {
irows[i] = -1;
}
}
}
2 changes: 0 additions & 2 deletions src/_image.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@ void _bin_indices_middle_linear(float *arows,
float dy,
float y_min);
void _bin_indices(int *irows, int nrows, const double *y, unsigned long ny, double sc, double offs);
void _bin_indices_linear(
float *arows, int *irows, int nrows, double *y, unsigned long ny, double sc, double offs);

template <class CoordinateArray, class ColorArray, class OutputArray>
void pcolor(CoordinateArray &x,
Expand Down
1 change: 0 additions & 1 deletion src/ft2font.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -606,7 +606,6 @@ void FT2Font::set_text(
bbox.xMax = bbox.yMax = -32000;

for (unsigned int n = 0; n < N; n++) {
std::string thischar("?");
FT_UInt glyph_index;
FT_BBox glyph_bbox;
FT_Pos last_advance;
Expand Down
113 changes: 0 additions & 113 deletions src/path_cleanup.cpp

This file was deleted.

27 changes: 0 additions & 27 deletions src/path_cleanup.h

This file was deleted.