From 3617db967bd45737561d819c29d3dba9fdbd95c8 Mon Sep 17 00:00:00 2001 From: Manuel Simon Hirsig Date: Sat, 29 Oct 2016 01:50:53 +0200 Subject: [PATCH] refactoring --- gui/auction_listing.lua | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/gui/auction_listing.lua b/gui/auction_listing.lua index 14346a0..b859d2c 100644 --- a/gui/auction_listing.lua +++ b/gui/auction_listing.lua @@ -841,12 +841,6 @@ local methods = { end end, - - - -- ============================================================================ - -- General Results Table Methods - -- ============================================================================ - Reset = function(rt) wipe(rt.expanded) rt:UpdateRowInfo() @@ -854,15 +848,11 @@ local methods = { rt:SetSelectedRecord() end, - SetDatabase = function(rt, database, filterFunc, filterHash) + SetDatabase = function(rt, database) if database and database ~= rt.records then rt.records = database end --- rt.dbView:SetFilter(filterFunc, filterHash) --- elseif filterFunc then --- rt.dbView:SetFilter(filterFunc, filterHash) -- TODO - -- get index of selected row local prevSelectedIndex if rt.selected then @@ -1016,7 +1006,6 @@ function M.CreateAuctionResultsTable(parent, config) local contentFrame = CreateFrame('Frame', nil, rt) contentFrame:SetPoint('TOPLEFT', 0, 0) contentFrame:SetPoint('BOTTOMRIGHT', -15, 0) --- contentFrame:SetScript('OnSizeChanged', rt.OnContentSizeChanged) rt.contentFrame = contentFrame -- frame to hold the header columns and the rows