349 @return flag indicating success |
349 @return flag indicating success |
350 @rtype bool |
350 @rtype bool |
351 """ |
351 """ |
352 if pos < 0 or pos >= self.__size: |
352 if pos < 0 or pos >= self.__size: |
353 # position is out of range, do nothing |
353 # position is out of range, do nothing |
354 return |
354 return False |
355 |
355 |
356 chunkIdx = self.__getChunkIndex(pos) |
356 chunkIdx = self.__getChunkIndex(pos) |
357 chunk = self.__chunks[chunkIdx] |
357 chunk = self.__chunks[chunkIdx] |
358 posInChunk = pos - chunk.absPos |
358 posInChunk = pos - chunk.absPos |
359 chunk.data.pop(posInChunk) |
359 chunk.data.pop(posInChunk) |