Remove unused variables

Signed-off-by: Anton Lundin <glance@acc.umu.se>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Anton Lundin 2014-10-12 18:12:35 +02:00 committed by Dirk Hohndel
parent 9c0e2fc823
commit 3b30009d7a
2 changed files with 4 additions and 7 deletions

View file

@ -824,7 +824,6 @@ static void calculate_gas_information_new(struct dive *dive, struct plot_info *p
{ {
int i; int i;
double amb_pressure; double amb_pressure;
struct gas_pressures pressures;
for (i = 1; i < pi->nr; i++) { for (i = 1; i < pi->nr; i++) {
int fo2, fhe; int fo2, fhe;
@ -894,9 +893,7 @@ static void debug_print_profiledata(struct plot_info *pi)
*/ */
void create_plot_info_new(struct dive *dive, struct divecomputer *dc, struct plot_info *pi) void create_plot_info_new(struct dive *dive, struct divecomputer *dc, struct plot_info *pi)
{ {
FILE *f1; int o2, he, o2low;
int i, o2, he, o2low;
struct plot_data *entry;
init_decompression(dive); init_decompression(dive);
/* Create the new plot data */ /* Create the new plot data */
free((void *)last_pi_entry_new); free((void *)last_pi_entry_new);

View file

@ -352,7 +352,7 @@ DivePercentageItem::DivePercentageItem(int i)
void DivePercentageItem::modelDataChanged(const QModelIndex &topLeft, const QModelIndex &bottomRight) void DivePercentageItem::modelDataChanged(const QModelIndex &topLeft, const QModelIndex &bottomRight)
{ {
int last = -300, last_printed_hr = 0, sec = 0; int sec = 0;
// We don't have enougth data to calculate things, quit. // We don't have enougth data to calculate things, quit.
if (!shouldCalculateStuff(topLeft, bottomRight)) if (!shouldCalculateStuff(topLeft, bottomRight))
@ -401,7 +401,7 @@ DiveAmbPressureItem::DiveAmbPressureItem()
void DiveAmbPressureItem::modelDataChanged(const QModelIndex &topLeft, const QModelIndex &bottomRight) void DiveAmbPressureItem::modelDataChanged(const QModelIndex &topLeft, const QModelIndex &bottomRight)
{ {
int last = -300, last_printed_hr = 0, sec = 0; int sec = 0;
// We don't have enougth data to calculate things, quit. // We don't have enougth data to calculate things, quit.
if (!shouldCalculateStuff(topLeft, bottomRight)) if (!shouldCalculateStuff(topLeft, bottomRight))
@ -450,7 +450,7 @@ DiveGFLineItem::DiveGFLineItem()
void DiveGFLineItem::modelDataChanged(const QModelIndex &topLeft, const QModelIndex &bottomRight) void DiveGFLineItem::modelDataChanged(const QModelIndex &topLeft, const QModelIndex &bottomRight)
{ {
int last = -300, last_printed_hr = 0, sec = 0; int sec = 0;
// We don't have enougth data to calculate things, quit. // We don't have enougth data to calculate things, quit.
if (!shouldCalculateStuff(topLeft, bottomRight)) if (!shouldCalculateStuff(topLeft, bottomRight))