removed extra parameter correctByDeclination on IgtimiConnectionFactory.connect where it wasn't used

This commit is contained in:
Axel Uhl
2014-06-27 09:39:24 +02:00
parent eb50a6e11c
commit d5042456f1
7 changed files with 8 additions and 9 deletions
@@ -8,7 +8,6 @@ import org.apache.http.client.ClientProtocolException;
import org.json.simple.parser.ParseException;
import org.xml.sax.SAXException;
import com.sap.sailing.declination.DeclinationService;
import com.sap.sailing.domain.igtimiadapter.oauth.AuthorizationCallback;
/**
@@ -21,7 +20,7 @@ import com.sap.sailing.domain.igtimiadapter.oauth.AuthorizationCallback;
public interface IgtimiConnectionFactory {
Iterable<Account> getAllAccounts();
IgtimiConnection connect(Account account, boolean correctByDeclination);
IgtimiConnection connect(Account account);
/**
* Removes the account and the credentials associated with it permanently. The account is identified by the e-mail
@@ -39,7 +38,7 @@ public interface IgtimiConnectionFactory {
/**
* Using the "account" service, retrieves the {@link Account} information for this access token and stores the token
* that authorizes this factory's client to access the account together with the {@link Account} data. This information is
* used when a caller wants to {@link #connect(Account, DeclinationService)} to a specific account on behalf of the {@link Client} to
* used when a caller wants to {@link #connect(Account)} to a specific account on behalf of the {@link Client} to
* which this factory belongs.
* @return
*/
@@ -130,7 +130,7 @@ public class IgtimiConnectionFactoryImpl implements IgtimiConnectionFactory {
}
@Override
public IgtimiConnection connect(Account account, boolean correctByDeclination) {
public IgtimiConnection connect(Account account) {
return new IgtimiConnectionImpl(this, account);
}
@@ -44,7 +44,7 @@ public class IgtimiWindTracker extends AbstractWindTracker implements WindTracke
for (Account account : accounts) {
try {
if (!stopping) {
IgtimiConnection connection = connectionFactory.connect(account, correctByDeclination);
IgtimiConnection connection = connectionFactory.connect(account);
Iterable<String> devicesWeShouldListenTo = connection.getWindDevices();
if (!stopping) {
LiveDataConnection liveConnection = connection.getOrCreateLiveConnection(devicesWeShouldListenTo);