mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Remove unused return value
We never use the number of decimals that this function returns. So we might as well not return them to begin with. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
1511711507
commit
4dfbb7394f
1 changed files with 1 additions and 4 deletions
|
@ -64,9 +64,8 @@ static int convert_pressure(int mbar, double *p)
|
||||||
return decimals;
|
return decimals;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int convert_volume_pressure(int ml, int mbar, double *v, double *p)
|
static void convert_volume_pressure(int ml, int mbar, double *v, double *p)
|
||||||
{
|
{
|
||||||
int decimals = 1;
|
|
||||||
double volume, pressure;
|
double volume, pressure;
|
||||||
|
|
||||||
volume = ml / 1000.0;
|
volume = ml / 1000.0;
|
||||||
|
@ -78,13 +77,11 @@ static int convert_volume_pressure(int ml, int mbar, double *v, double *p)
|
||||||
|
|
||||||
if (output_units.pressure == PSI) {
|
if (output_units.pressure == PSI) {
|
||||||
pressure = mbar_to_PSI(mbar);
|
pressure = mbar_to_PSI(mbar);
|
||||||
decimals = 0;
|
|
||||||
} else
|
} else
|
||||||
pressure = mbar / 1000.0;
|
pressure = mbar / 1000.0;
|
||||||
}
|
}
|
||||||
*v = volume;
|
*v = volume;
|
||||||
*p = pressure;
|
*p = pressure;
|
||||||
return decimals;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void set_cylinder_type_spinbuttons(struct cylinder_widget *cylinder, int ml, int mbar)
|
static void set_cylinder_type_spinbuttons(struct cylinder_widget *cylinder, int ml, int mbar)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue