mirror of https://github.com/rusefi/rusefi.git
only: dead parameter
This commit is contained in:
parent
fa9c41c9ca
commit
0c5894285a
|
@ -76,11 +76,11 @@ public class Online {
|
||||||
/**
|
/**
|
||||||
* we are here in case of individual tune upload
|
* we are here in case of individual tune upload
|
||||||
*/
|
*/
|
||||||
public static BasicFuture<UploadResult> uploadTune(Msq tune, AuthTokenPanel authTokenPanel, JComponent parent, FutureCallback<UploadResult> callback) {
|
public static BasicFuture<UploadResult> uploadTune(Msq tune, JComponent parent, FutureCallback<UploadResult> callback) {
|
||||||
try {
|
try {
|
||||||
tune.writeXmlFile(outputXmlFileName);
|
tune.writeXmlFile(outputXmlFileName);
|
||||||
} catch (JAXBException | IOException e) {
|
} catch (JAXBException | IOException e) {
|
||||||
throw new IllegalStateException("While writing tune", e);
|
throw new IllegalStateException("writeXmlFile failed writing tune", e);
|
||||||
}
|
}
|
||||||
|
|
||||||
return uploadFile(parent, callback, outputXmlFileName);
|
return uploadFile(parent, callback, outputXmlFileName);
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
package com.rusefi.ui;
|
package com.rusefi.ui;
|
||||||
|
|
||||||
import com.opensr5.ini.IniFileModel;
|
|
||||||
import com.rusefi.binaryprotocol.MsqFactory;
|
import com.rusefi.binaryprotocol.MsqFactory;
|
||||||
import com.rusefi.tools.online.Online;
|
import com.rusefi.tools.online.Online;
|
||||||
import com.rusefi.tune.xml.Msq;
|
import com.rusefi.tune.xml.Msq;
|
||||||
|
@ -27,7 +26,7 @@ public class OnlineTab {
|
||||||
@Override
|
@Override
|
||||||
public void actionPerformed(ActionEvent e) {
|
public void actionPerformed(ActionEvent e) {
|
||||||
Msq tune = MsqFactory.valueOf(uiContext.getLinkManager().getCurrentStreamState().getControllerConfiguration(), uiContext.getIni());
|
Msq tune = MsqFactory.valueOf(uiContext.getLinkManager().getCurrentStreamState().getControllerConfiguration(), uiContext.getIni());
|
||||||
Online.uploadTune(tune, authTokenPanel, content, null);
|
Online.uploadTune(tune, content, null);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
content.add(upload);
|
content.add(upload);
|
||||||
|
|
|
@ -119,7 +119,7 @@ public class TuneUploadTab {
|
||||||
uploadView.uploadState.setText("Uploading...");
|
uploadView.uploadState.setText("Uploading...");
|
||||||
|
|
||||||
Msq tune = TuneUploder.writeCurrentTune(controllerAccessSupplier.get(), configurationName);
|
Msq tune = TuneUploder.writeCurrentTune(controllerAccessSupplier.get(), configurationName);
|
||||||
Online.uploadTune(tune, tokenPanel, content, new FutureCallback<UploadResult>() {
|
Online.uploadTune(tune, content, new FutureCallback<UploadResult>() {
|
||||||
@Override
|
@Override
|
||||||
public void completed(UploadResult array) {
|
public void completed(UploadResult array) {
|
||||||
SwingUtilities.invokeLater(new Runnable() {
|
SwingUtilities.invokeLater(new Runnable() {
|
||||||
|
|
Loading…
Reference in New Issue