From 09a7396ad5c2780454c2166752adc32f1f839e22 Mon Sep 17 00:00:00 2001 From: Matthew Kienow Date: Mon, 14 May 2018 17:20:58 -0400 Subject: [PATCH] Remove remote data service find_or_create method --- .../data_service/remote/http/remote_host_data_service.rb | 4 ---- .../data_service/remote/http/remote_loot_data_service.rb | 4 ---- 2 files changed, 8 deletions(-) diff --git a/lib/metasploit/framework/data_service/remote/http/remote_host_data_service.rb b/lib/metasploit/framework/data_service/remote/http/remote_host_data_service.rb index 9bd856773e..a23a55ddc7 100644 --- a/lib/metasploit/framework/data_service/remote/http/remote_host_data_service.rb +++ b/lib/metasploit/framework/data_service/remote/http/remote_host_data_service.rb @@ -19,10 +19,6 @@ module RemoteHostDataService json_to_mdm_object(self.post_data(HOST_API_PATH, opts), HOST_MDM_CLASS, []).first end - def find_or_create_host(opts) - json_to_mdm_object(self.post_data(HOST_API_PATH, opts), HOST_MDM_CLASS, []).first - end - def report_hosts(hosts) self.post_data(HOST_API_PATH, hosts) end diff --git a/lib/metasploit/framework/data_service/remote/http/remote_loot_data_service.rb b/lib/metasploit/framework/data_service/remote/http/remote_loot_data_service.rb index c9759f4833..65f4b465c8 100644 --- a/lib/metasploit/framework/data_service/remote/http/remote_loot_data_service.rb +++ b/lib/metasploit/framework/data_service/remote/http/remote_loot_data_service.rb @@ -23,10 +23,6 @@ module RemoteLootDataService self.post_data_async(LOOT_API_PATH, opts) end - def find_or_create_loot(opts) - json_to_mdm_object(self.post_data(LOOT_API_PATH, opts), LOOT_MDM_CLASS, []) - end - def report_loots(loot) self.post_data(LOOT_API_PATH, loot) end