Are setWidth(null) and setSizeUndefined() the same?

Hi,
-Sorry if it has been asked before-
I want to know if the methods
setWidth(null)
and
setSizeUndefined()
do the same.
(Apparently, yes)

Thanks

setSizeUndefined();

is a shortcut for

setWidth(null);
setHeight(null);

Thanks!