Skip to content

Commit 9c012f6

Browse files
committed
fix unused params
1 parent fa4bd82 commit 9c012f6

File tree

11 files changed

+11
-96
lines changed

11 files changed

+11
-96
lines changed

src/main/java/com/amadeus/Amadeus.java

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -69,13 +69,6 @@ public class Amadeus extends HTTPClient {
6969
*/
7070
public Booking booking;
7171

72-
/**
73-
* <p>
74-
* A namespaced client for the <code>/v2/media</code> endpoints.
75-
* </p>
76-
*/
77-
public Media media;
78-
7972
/**
8073
* <p>
8174
* A namespaced client for the <code>/v1/safety</code> endpoints.
@@ -126,7 +119,6 @@ protected Amadeus(Configuration configuration) {
126119
this.ereputation = new EReputation(this);
127120
this.airport = new Airport(this);
128121
this.booking = new Booking(this);
129-
this.media = new Media(this);
130122
this.safety = new Safety(this);
131123
this.schedule = new Schedule(this);
132124
this.analytics = new Analytics(this);

src/main/java/com/amadeus/DutyOfCare.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@
1919
* @hide
2020
*/
2121
public class DutyOfCare {
22-
private Amadeus client;
23-
2422
/**
2523
* <p>
2624
* A namespaced client for the
@@ -34,7 +32,6 @@ public class DutyOfCare {
3432
* @hide
3533
*/
3634
public DutyOfCare(Amadeus client) {
37-
this.client = client;
3835
this.diseases = new Diseases(client);
3936
}
4037
}

src/main/java/com/amadeus/EReputation.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
import com.amadeus.ereputation.HotelSentiments;
44

55
public class EReputation {
6-
private Amadeus client;
7-
86
/**
97
* <p>
108
* A namespaced client for the
@@ -14,7 +12,6 @@ public class EReputation {
1412
public HotelSentiments hotelSentiments;
1513

1614
public EReputation(Amadeus client) {
17-
this.client = client;
1815
this.hotelSentiments = new HotelSentiments(client);
1916
}
2017
}

src/main/java/com/amadeus/Location.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@
1919
* @hide
2020
*/
2121
public class Location {
22-
private Amadeus client;
23-
2422
/**
2523
* <p>
2624
* A namespaced client for the
@@ -34,7 +32,6 @@ public class Location {
3432
* @hide
3533
*/
3634
public Location(Amadeus client) {
37-
this.client = client;
3835
this.analytics = new Analytics(client);
3936
}
4037
}

src/main/java/com/amadeus/Media.java

Lines changed: 0 additions & 37 deletions
This file was deleted.

src/main/java/com/amadeus/Response.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ protected Response(Request request) {
6161
protected void parse(HTTPClient client) {
6262
parseStatusCode();
6363
if (this.statusCode != 204) {
64-
parseData(client);
64+
parseData();
6565
}
6666
}
6767

@@ -99,10 +99,10 @@ private void parseStatusCode() {
9999
}
100100

101101
// Tries to parse the data
102-
private void parseData(HTTPClient client) {
102+
private void parseData() {
103103
this.parsed = false;
104104
this.body = readBody();
105-
this.result = parseJson(client);
105+
this.result = parseJson();
106106
this.parsed = this.result != null;
107107
if (parsed && result.has("data")) {
108108
if (result.get("data").isJsonArray()) {
@@ -154,7 +154,7 @@ private String readBody() {
154154
}
155155

156156
// Ties to parse the response body into a JSON Object
157-
private JsonObject parseJson(HTTPClient client) {
157+
private JsonObject parseJson() {
158158
if (isJson()) {
159159
return new JsonParser().parse(getBody()).getAsJsonObject();
160160
}

src/main/java/com/amadeus/booking/FlightOrders.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -184,8 +184,6 @@ public FlightOrder post(FlightPrice flightPrice,
184184
JsonObject typeObject = new JsonObject();
185185
typeObject.addProperty("type", "flight-order");
186186

187-
Gson gson = new GsonBuilder().create();
188-
189187
JsonArray flightOffersArray = buildFlightOffersJSON(flightPrice.getFlightOffers());
190188
typeObject.add("flightOffers", flightOffersArray);
191189

src/main/java/com/amadeus/media/Files.java

Lines changed: 0 additions & 29 deletions
This file was deleted.

src/main/java/com/amadeus/referenceData/locations/Hotels.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@
2020
* amadeus.referenceData.locations.hotels;</pre>
2121
*/
2222
public class Hotels {
23-
private Amadeus client;
24-
2523
/**
2624
* <p>
2725
* A namespaced client for the
@@ -51,7 +49,6 @@ public class Hotels {
5149
* @hide
5250
*/
5351
public Hotels(Amadeus client) {
54-
this.client = client;
5552
this.byCity = new ByCity(client);
5653
this.byHotels = new ByHotels(client);
5754
this.byGeocode = new ByGeocode(client);

src/main/java/com/amadeus/shopping/FlightOffers.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
* amadeus.shopping.flightOffers;</pre>
2020
*/
2121
public class FlightOffers {
22-
private Amadeus client;
2322
public Prediction prediction;
2423
public Upselling upselling;
2524

@@ -28,7 +27,6 @@ public class FlightOffers {
2827
* @hide
2928
*/
3029
public FlightOffers(Amadeus client) {
31-
this.client = client;
3230
this.prediction = new Prediction(client);
3331
this.upselling = new Upselling(client);
3432
}

0 commit comments

Comments
 (0)