changeset 44:9a6d4e2768fd

Removed SaveNewValue which wasn't being used any more.
author Asa Ayers <Asa.Ayers@Gmail.com>
date Mon, 19 Jul 2010 22:49:02 -0700
parents 60ab9a4d2de1
children a66f6fc57cfb
files Modules/DisplayInvested.lua
diffstat 1 files changed, 0 insertions(+), 18 deletions(-) [+]
line wrap: on
line diff
--- a/Modules/DisplayInvested.lua	Mon Jul 19 22:46:52 2010 -0700
+++ b/Modules/DisplayInvested.lua	Mon Jul 19 22:49:02 2010 -0700
@@ -34,23 +34,6 @@
 	
 end
 
-local function SaveNewValue(link, type, text)
-	if not validateMoney(text) then
-		error("Invalid value")
-	end
-	local investedTotal, investedPerItem, numOwned = ItemAuditor:GetItemCost(link)
-	local newValue=parseMoney(text)
-	
-	if type == priceTypeEach then
-		newValue = newValue * numOwned
-	end
-	
-	ItemAuditor:SaveValue(link, newValue-investedTotal, 0)
-	-- ItemAuditor:SaveValue(link, newValue, 0)
-	
-	promptFrame:Hide()
-end
-
 StaticPopupDialogs["ItemAuditor_NewPrice"] = {
 	text = "New price %s %s",
 	button1 = SAVE,
@@ -85,7 +68,6 @@
 }
 
 local function PromptForNewPrice(link, type)
-	-- function(widget, event, text) SaveNewValue(link, type, text) end
 	local investedTotal, investedPerItem, count = ItemAuditor:GetItemCost(link)
 
 	local typeText = "Invested Each"