Unified · Split
| @@ -131,8 +131,6 @@ static float edge_width(BLRContext *blr, int i, int j, int8_t dir, int w, int h, · 130 unmodified lines | ||
| 131 | 131 | int p1; |
| 132 | 132 | int p2; |
| 133 | 133 | int k, x, y; |
| 134 | − int edge1; | |
| 135 | − int edge2; | |
| 136 | 134 | int radius = blr->radius; |
| 137 | 135 | |
| 138 | 136 | switch(dir) { |
| @@ -161,7 +159,6 @@ static float edge_width(BLRContext *blr, int i, int j, int8_t dir, int w, int h, · 22 unmodified lines | ||
| 161 | 159 | if (tmp <= 0) // local maximum found |
| 162 | 160 | break; |
| 163 | 161 | } |
| 164 | − edge1 = k; | |
| 165 | 162 | width += k; |
| 166 | 163 | |
| 167 | 164 | // search in +(dX/dY) direction |
| @@ -180,7 +177,6 @@ static float edge_width(BLRContext *blr, int i, int j, int8_t dir, int w, int h, · 12 unmodified lines | ||
| 180 | 177 | if (tmp >= 0) // local maximum found |
| 181 | 178 | break; |
| 182 | 179 | } |
| 183 | − edge2 = k; | |
| 184 | 180 | width += k; |
| 185 | 181 | |
| 186 | 182 | // for 45 degree directions approximate edge width in pixel units: 0.7 ~= sqrt(2)/2 |