Commit e2dc2a9
committed
Remove getUnsortedSqlAndSortByKeyDropDown()
This was stupid abstraction. This method did 2 things. When the code that prepares unsorted SQL is moved out of this method, the rest can be absorbed by getSortByKeyDropDown(). This method didn't declare any local variables, it took parameters that were just passed along to other methods. The code to get unsorted SQL was just a single instruction that was self-explanatory. Indexes relied on properties so they didn't need to be a parameter to the other method.
This method only added complexity instead of reducing it.
Signed-off-by: Kamil Tekiela <tekiela246@gmail.com>1 parent 7a735dd commit e2dc2a9
2 files changed
Lines changed: 23 additions & 61 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1176 | 1176 | | |
1177 | 1177 | | |
1178 | 1178 | | |
1179 | | - | |
1180 | | - | |
1181 | | - | |
1182 | | - | |
1183 | | - | |
1184 | | - | |
1185 | | - | |
1186 | | - | |
1187 | | - | |
1188 | | - | |
1189 | | - | |
1190 | | - | |
1191 | | - | |
1192 | | - | |
1193 | | - | |
1194 | | - | |
1195 | | - | |
1196 | | - | |
1197 | | - | |
1198 | | - | |
1199 | | - | |
1200 | | - | |
1201 | | - | |
1202 | | - | |
1203 | | - | |
1204 | | - | |
1205 | | - | |
1206 | | - | |
1207 | | - | |
1208 | | - | |
1209 | | - | |
1210 | | - | |
1211 | | - | |
1212 | | - | |
1213 | | - | |
1214 | | - | |
1215 | | - | |
1216 | | - | |
1217 | 1179 | | |
1218 | 1180 | | |
1219 | 1181 | | |
1220 | 1182 | | |
1221 | 1183 | | |
1222 | | - | |
1223 | 1184 | | |
1224 | 1185 | | |
1225 | 1186 | | |
1226 | 1187 | | |
1227 | | - | |
| 1188 | + | |
1228 | 1189 | | |
1229 | 1190 | | |
1230 | | - | |
1231 | 1191 | | |
1232 | | - | |
| 1192 | + | |
1233 | 1193 | | |
| 1194 | + | |
| 1195 | + | |
| 1196 | + | |
| 1197 | + | |
| 1198 | + | |
| 1199 | + | |
| 1200 | + | |
| 1201 | + | |
1234 | 1202 | | |
1235 | 1203 | | |
1236 | 1204 | | |
| |||
3706 | 3674 | | |
3707 | 3675 | | |
3708 | 3676 | | |
3709 | | - | |
3710 | | - | |
3711 | | - | |
3712 | | - | |
| 3677 | + | |
| 3678 | + | |
| 3679 | + | |
| 3680 | + | |
| 3681 | + | |
3713 | 3682 | | |
| 3683 | + | |
| 3684 | + | |
| 3685 | + | |
| 3686 | + | |
| 3687 | + | |
| 3688 | + | |
| 3689 | + | |
| 3690 | + | |
3714 | 3691 | | |
3715 | 3692 | | |
3716 | 3693 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3455 | 3455 | | |
3456 | 3456 | | |
3457 | 3457 | | |
3458 | | - | |
3459 | | - | |
3460 | | - | |
3461 | | - | |
3462 | | - | |
3463 | | - | |
3464 | | - | |
3465 | | - | |
3466 | | - | |
3467 | | - | |
3468 | | - | |
3469 | | - | |
3470 | | - | |
3471 | | - | |
3472 | | - | |
3473 | 3458 | | |
3474 | 3459 | | |
3475 | 3460 | | |
| |||
0 commit comments