From aadbcca6f07fa6e38a0c6932dbf51917b1279a43 Mon Sep 17 00:00:00 2001 From: Roman Zeyde Date: Tue, 25 Aug 2015 11:02:22 +0300 Subject: [PATCH] transaction: remove unused mmap-related code --- lib/transaction.py | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/lib/transaction.py b/lib/transaction.py index 1f4baa8b..42b51f2f 100644 --- a/lib/transaction.py +++ b/lib/transaction.py @@ -32,7 +32,6 @@ import struct # import struct import StringIO -import mmap import random NO_SIGNATURE = 'ff' @@ -55,16 +54,6 @@ class BCDataStream(object): else: self.input += bytes - def map_file(self, file, start): # Initialize with bytes from file - self.input = mmap.mmap(file.fileno(), 0, access=mmap.ACCESS_READ) - self.read_cursor = start - - def seek_file(self, position): - self.read_cursor = position - - def close_file(self): - self.input.close() - def read_string(self): # Strings are encoded depending on length: # 0 to 252 : 1-byte-length followed by bytes (if any)