From 4879eb1d78520ce0ac9b0bb0ef5244cf65ad7c99 Mon Sep 17 00:00:00 2001 From: Alexander Pickering Date: Wed, 4 Jan 2017 23:27:36 -0500 Subject: Started refactoring item and inventory system --- gamemode/shared/lockbox/padding.lua | 21 --------------------- 1 file changed, 21 deletions(-) delete mode 100644 gamemode/shared/lockbox/padding.lua (limited to 'gamemode/shared/lockbox/padding.lua') diff --git a/gamemode/shared/lockbox/padding.lua b/gamemode/shared/lockbox/padding.lua deleted file mode 100644 index 72be077..0000000 --- a/gamemode/shared/lockbox/padding.lua +++ /dev/null @@ -1,21 +0,0 @@ -local Stream = include("stream.lua"); - -local ZeroPadding = function(blockSize,byteCount) - - local paddingCount = blockSize - ((byteCount -1) % blockSize) + 1; - local bytesLeft = paddingCount; - - local stream = function() - if bytesLeft > 0 then - bytesLeft = bytesLeft - 1; - return 0x00; - else - return nil; - end - end - - return stream; - -end - -return ZeroPadding; -- cgit v1.2.3-70-g09d2