Skip to content

Commit

Permalink
Removed constants for deprecated queryParams and removed the code loo…
Browse files Browse the repository at this point in the history
…king for the params in the requests.
  • Loading branch information
rma-rripken committed Nov 8, 2023
1 parent e8f44d2 commit ca24425
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@
import static cwms.cda.api.Controllers.OFFICE;
import static cwms.cda.api.Controllers.OVERRIDE_PROTECTION;
import static cwms.cda.api.Controllers.PAGE;
import static cwms.cda.api.Controllers.PAGESIZE2;
import static cwms.cda.api.Controllers.PAGESIZE3;
import static cwms.cda.api.Controllers.PAGE_SIZE;
import static cwms.cda.api.Controllers.RESULTS;
import static cwms.cda.api.Controllers.SIZE;
Expand Down Expand Up @@ -374,8 +372,8 @@ public void getAll(Context ctx) {
String.class, "", metrics, name(TimeSeriesController.class.getName(),
GET_ALL));

int pageSize = queryParamAsClass(ctx, new String[]{PAGE_SIZE, PAGESIZE3,
PAGESIZE2}, Integer.class, defaultPageSize, metrics,
int pageSize = queryParamAsClass(ctx, new String[]{PAGE_SIZE },
Integer.class, defaultPageSize, metrics,
name(TimeSeriesController.class.getName(), GET_ALL));

String acceptHeader = ctx.header(Header.ACCEPT);
Expand Down

0 comments on commit ca24425

Please sign in to comment.