Fold sarg_getrange() into sarg_area()
sarg_area() is the only caller, and is not doing anything but calling it anymore.
This commit is contained in:
parent
68f7c0ceda
commit
7a6073bb67
1 changed files with 6 additions and 15 deletions
|
@ -94,9 +94,12 @@ sarg_xy(char *str, coord *xp, coord *yp)
|
|||
return 1;
|
||||
}
|
||||
|
||||
/* returns absolute coords */
|
||||
static int
|
||||
sarg_getrange(char *str, struct range *rp)
|
||||
/*
|
||||
* translate #1 or lx:ly,hx:hy into a result range struct
|
||||
* returns absolute coords
|
||||
*/
|
||||
int
|
||||
sarg_area(char *str, struct range *rp)
|
||||
{
|
||||
long rlm;
|
||||
struct natstr *np;
|
||||
|
@ -156,18 +159,6 @@ sarg_getrange(char *str, struct range *rp)
|
|||
return 1;
|
||||
}
|
||||
|
||||
/*
|
||||
* translate #1 or lx:ly,hx:hy into
|
||||
* a result range struct
|
||||
*/
|
||||
int
|
||||
sarg_area(char *str, struct range *rp)
|
||||
{
|
||||
if (!sarg_getrange(str, rp))
|
||||
return 0;
|
||||
return 1;
|
||||
}
|
||||
|
||||
/*
|
||||
* translate @x,y:int into
|
||||
* result params
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue