Remove unused browser_window_owner function.
svn path=/trunk/netsurf/; revision=12739
This commit is contained in:
parent
0401d52f51
commit
dca97bc8d4
|
@ -1602,37 +1602,6 @@ void browser_window_destroy_internal(struct browser_window *bw)
|
|||
}
|
||||
|
||||
|
||||
/**
|
||||
* Returns the browser window that is responsible for the child.
|
||||
*
|
||||
* \param bw The browser window to find the owner of
|
||||
* \return the browser window's owner
|
||||
*
|
||||
* TODO: REMOVE THIS FUNCTION
|
||||
*/
|
||||
|
||||
struct browser_window *browser_window_owner(struct browser_window *bw)
|
||||
{
|
||||
/* an iframe's parent is just the parent window */
|
||||
if (bw->browser_window_type == BROWSER_WINDOW_IFRAME)
|
||||
return bw->parent;
|
||||
|
||||
/* the parent of a frameset is either a NORMAL window or an IFRAME */
|
||||
while (bw->parent != NULL) {
|
||||
switch (bw->browser_window_type) {
|
||||
case BROWSER_WINDOW_NORMAL:
|
||||
case BROWSER_WINDOW_IFRAME:
|
||||
return bw;
|
||||
case BROWSER_WINDOW_FRAME:
|
||||
case BROWSER_WINDOW_FRAMESET:
|
||||
bw = bw->parent;
|
||||
break;
|
||||
}
|
||||
}
|
||||
return bw;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Reformat a browser window contents to a new width or height.
|
||||
*
|
||||
|
|
|
@ -231,7 +231,6 @@ void browser_window_update_box(struct browser_window *bw, struct rect *rect);
|
|||
void browser_window_stop(struct browser_window *bw);
|
||||
void browser_window_reload(struct browser_window *bw, bool all);
|
||||
void browser_window_destroy(struct browser_window *bw);
|
||||
struct browser_window * browser_window_owner(struct browser_window *bw);
|
||||
void browser_window_reformat(struct browser_window *bw, bool background,
|
||||
int width, int height);
|
||||
void browser_window_set_scale(struct browser_window *bw, float scale, bool all);
|
||||
|
|
Loading…
Reference in New Issue