removed junk

Brad Gearon [04-09-14 - 12:35]
removed junk
Filename
.idea/workspace.xml
Stuff.lua
diff --git a/.idea/workspace.xml b/.idea/workspace.xml
index 48de938..428de78 100644
--- a/.idea/workspace.xml
+++ b/.idea/workspace.xml
@@ -71,7 +71,7 @@
       <file leaf-file-name="Stuff.lua" pinned="false" current="true" current-in-tab="true">
         <entry file="file://$PROJECT_DIR$/Stuff.lua">
           <provider selected="true" editor-type-id="text-editor">
-            <state line="63" column="6" selection-start="2096" selection-end="2096" vertical-scroll-proportion="0.19343066">
+            <state line="63" column="0" selection-start="2096" selection-end="2096" vertical-scroll-proportion="0.620438">
               <folding />
             </state>
           </provider>
@@ -537,7 +537,7 @@
     </entry>
     <entry file="file://$PROJECT_DIR$/Stuff.lua">
       <provider selected="true" editor-type-id="text-editor">
-        <state line="63" column="6" selection-start="2096" selection-end="2096" vertical-scroll-proportion="0.19343066">
+        <state line="63" column="0" selection-start="2096" selection-end="2096" vertical-scroll-proportion="0.620438">
           <folding />
         </state>
       </provider>
diff --git a/Stuff.lua b/Stuff.lua
index c7f5e5e..3a44a7f 100644
--- a/Stuff.lua
+++ b/Stuff.lua
@@ -62,34 +62,6 @@ function moveItems(bags, fromBag, toBag)
     end
 end

-function keepMovingItems(fromItems, toItems, bagItem, itemName)
-    local maxIterations = 15
-    local iterations = 1
-    while iterations < maxIterations and checkItems(fromItems, toItems, bagItem.maxStack, itemName) do
-        loopItems(fromItems, toItems, bagItem.maxStack, itemName)
-        table.sort(toItems, sortStack)
-        table.sort(fromItems, reverseStack)
-        iterations = iterations + 1
-    end
-end
-
-function checkItems(fromItems, toItems, maxStack)
-    local itemsLeft = false
-    for toIndex, toItem in ipairs(toItems) do
-        if(maxStack - toItem.stack > 0) then
-            for fromIndex, fromItem in ipairs(fromItems) do
-                local sameBag = fromItem.bag == toItem.bag
-                local sameSlot = fromItem.slot == toItem.slot
-                itemsLeft = not (sameBag and sameSlot) and fromItem.stack > 0
-                if(itemsLeft) then
-                    break
-                end
-            end
-        end
-    end
-    return itemsLeft
-end
-
 function loopItems(fromItems, toItems, maxStack, itemName)
     table.sort(toItems, sortStack)
     table.sort(fromItems, reverseStack)