summaryrefslogtreecommitdiff
path: root/src/lib/tng_io.c
diff options
context:
space:
mode:
authorMagnus Lundborg <lundborg.magnus@gmail.com>2014-09-24 08:20:36 (GMT)
committerMagnus Lundborg <lundborg.magnus@gmail.com>2014-09-24 08:53:37 (GMT)
commit8347c315f6fa001dec45543f3bd90cf0cee92365 (patch)
tree507fc93788656ad16b23054a6c78cb01bb85f7b4 /src/lib/tng_io.c
parent2fdf2c14b73260b007635f9fc431add71158dc41 (diff)
Removed some unused (commented out) code.
Change-Id: I2b9a5960f9dad2974ade1c734e2ac0d0987db9ee
Diffstat (limited to 'src/lib/tng_io.c')
-rw-r--r--src/lib/tng_io.c58
1 files changed, 0 insertions, 58 deletions
diff --git a/src/lib/tng_io.c b/src/lib/tng_io.c
index 7169fcf..947df1d 100644
--- a/src/lib/tng_io.c
+++ b/src/lib/tng_io.c
@@ -375,17 +375,6 @@ static TNG_INLINE size_t tng_min_size(size_t a, size_t b)
return (a < b ? a : b);
}
-/*
-static TNG_INLINE int tng_min_i(int a, int b)
-{
- return (a < b ? a : b);
-}
-static TNG_INLINE int tng_max_i(int a, int b)
-{
- return (a > b ? a : b);
-}
-*/
-
static TNG_INLINE int64_t tng_min_i64(int64_t a, int64_t b)
{
return (a < b ? a : b);
@@ -396,28 +385,6 @@ static TNG_INLINE int64_t tng_max_i64(int64_t a, int64_t b)
return (a > b ? a : b);
}
-/*
-static TNG_INLINE float tng_min_f(float a, float b)
-{
- return (a < b ? a : b);
-}
-
-static TNG_INLINE float tng_max_f(float a, float b)
-{
- return (a > b ? a : b);
-}
-
-static TNG_INLINE double tng_min_d(double a, double b)
-{
- return (a < b ? a : b);
-}
-
-static TNG_INLINE double tng_max_d(double a, double b)
-{
- return (a > b ? a : b);
-}
-*/
-
/** This function swaps the byte order of a 32 bit numerical variable
* to big endian.
* It does not only work with integer, but e.g. floats need casting.
@@ -6643,31 +6610,6 @@ static tng_function_status tng_frame_set_finalize
pos + block->header_contents_size);
}
-// fseeko(tng_data->output_file, 0, SEEK_END);
-// output_file_len = ftello(tng_data->output_file);
-// pos = contents_start_pos + block->block_contents_size;
-// fseeko(tng_data->output_file, pos, SEEK_SET);
-
-// while(pos < output_file_len)
-// {
-// if(tng_block_header_read(tng_data, block) != TNG_SUCCESS)
-// {
-// fprintf(stderr, "TNG library: Cannot read block header at pos %"PRId64". %s: %d\n", pos,
-// __FILE__, __LINE__);
-// tng_data->input_file = temp;
-// tng_block_destroy(&block);
-// return(TNG_CRITICAL);
-// }
-//
-// if(hash_mode == TNG_USE_HASH)
-// {
-// tng_md5_hash_update(tng_data, block, pos,
-// pos + block->header_contents_size);
-// }
-// pos += block->header_contents_size + block->block_contents_size;
-// fseeko(tng_data->output_file, pos, SEEK_SET);
-// }
-
fseeko(tng_data->output_file, curr_file_pos, SEEK_SET);
tng_data->input_file = temp;
contact: Jan Huwald // Impressum