summaryrefslogtreecommitdiffstats
path: root/file_index.cc
diff options
context:
space:
mode:
Diffstat (limited to 'file_index.cc')
-rw-r--r--file_index.cc15
1 files changed, 2 insertions, 13 deletions
diff --git a/file_index.cc b/file_index.cc
index f7e1cd0..de685a3 100644
--- a/file_index.cc
+++ b/file_index.cc
@@ -1,5 +1,5 @@
/* Lziprecover - Data recovery tool for the lzip format
- Copyright (C) 2009-2014 Antonio Diaz Diaz.
+ Copyright (C) 2009-2015 Antonio Diaz Diaz.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -25,6 +25,7 @@
#include <unistd.h>
#include "lzip.h"
+#include "block.h"
#include "file_index.h"
@@ -37,18 +38,6 @@ int seek_read( const int fd, uint8_t * const buf, const int size,
}
-Block Block::split( const long long pos )
- {
- if( pos > pos_ && pos < end() )
- {
- const Block b( pos_, pos - pos_ );
- pos_ = pos; size_ -= b.size_;
- return b;
- }
- return Block( 0, 0 );
- }
-
-
void File_index::set_errno_error( const char * const msg )
{
error_ = msg; error_ += std::strerror( errno ); error_ += '.';