@@ -23,7 +23,7 @@ use mullvad_daemon::{
23
23
settings:: patch:: Error as PatchError , version, Daemon , DaemonCommandChannel ,
24
24
} ;
25
25
use mullvad_types:: {
26
- account:: { AccountData , PlayPurchase , VoucherSubmission } ,
26
+ account:: { AccountData , VoucherSubmission } ,
27
27
custom_list:: CustomList ,
28
28
relay_constraints:: RelayOverride ,
29
29
settings:: DnsOptions ,
@@ -1301,62 +1301,6 @@ pub extern "system" fn Java_net_mullvad_mullvadvpn_service_MullvadDaemon_submitV
1301
1301
result. into_java ( & env) . forget ( )
1302
1302
}
1303
1303
1304
- #[ no_mangle]
1305
- #[ allow( non_snake_case) ]
1306
- pub extern "system" fn Java_net_mullvad_mullvadvpn_service_MullvadDaemon_initPlayPurchase < ' env > (
1307
- env : JNIEnv < ' env > ,
1308
- _: JObject < ' _ > ,
1309
- daemon_interface_address : jlong ,
1310
- ) -> JObject < ' env > {
1311
- let env = JnixEnv :: from ( env) ;
1312
-
1313
- let result =
1314
- // SAFETY: The address points to an instance valid for the duration of this function call
1315
- if let Some ( daemon_interface) = unsafe { get_daemon_interface ( daemon_interface_address) } {
1316
- let raw_result = daemon_interface. init_play_purchase ( ) ;
1317
-
1318
- if let Err ( ref error) = & raw_result {
1319
- log_request_error ( "init google play purchase" , error) ;
1320
- }
1321
-
1322
- PlayPurchaseInitResult :: from ( raw_result)
1323
- } else {
1324
- PlayPurchaseInitResult :: Error ( PlayPurchaseInitError :: OtherError )
1325
- } ;
1326
-
1327
- result. into_java ( & env) . forget ( )
1328
- }
1329
-
1330
- #[ no_mangle]
1331
- #[ allow( non_snake_case) ]
1332
- pub extern "system" fn Java_net_mullvad_mullvadvpn_service_MullvadDaemon_verifyPlayPurchase <
1333
- ' env ,
1334
- > (
1335
- env : JNIEnv < ' env > ,
1336
- _: JObject < ' _ > ,
1337
- daemon_interface_address : jlong ,
1338
- play_purchase : JObject < ' _ > ,
1339
- ) -> JObject < ' env > {
1340
- let env = JnixEnv :: from ( env) ;
1341
-
1342
- let result =
1343
- // SAFETY: The address points to an instance valid for the duration of this function call
1344
- if let Some ( daemon_interface) = unsafe { get_daemon_interface ( daemon_interface_address) } {
1345
- let play_purchase = PlayPurchase :: from_java ( & env, play_purchase) ;
1346
- let raw_result = daemon_interface. verify_play_purchase ( play_purchase) ;
1347
-
1348
- if let Err ( ref error) = & raw_result {
1349
- log_request_error ( "verify google play purchase" , error) ;
1350
- }
1351
-
1352
- PlayPurchaseVerifyResult :: from ( raw_result)
1353
- } else {
1354
- PlayPurchaseVerifyResult :: Error ( PlayPurchaseVerifyError :: OtherError )
1355
- } ;
1356
-
1357
- result. into_java ( & env) . forget ( )
1358
- }
1359
-
1360
1304
#[ no_mangle]
1361
1305
#[ allow( non_snake_case) ]
1362
1306
pub extern "system" fn Java_net_mullvad_mullvadvpn_service_MullvadDaemon_setRelaySettings (
0 commit comments