Recently I've been reading the Spivak's calculus textbook and got quite stuck on proving that if a function $$f:\mathbb{R}\to\mathbb{R}$$ has only removable discontinuities then $$g(x)=\lim_{y\to x} f(y)$$ is continuous. I've tried using the $\varepsilon$-$\delta$ definition and the triangle inequality, but then it still remains to prove that certain values of $\delta$ cover the whole real line and it doesn't seem to be necessarily true. There is maybe a way to make the $\delta$ larger and finish it that way, but it seems to be quite ugly. So, I'm interested to hear whether there are other approaches, or better ways to finish using the approach above.
Edit: On the internet I've found another proof using the identity: $$\lim_{b\to a} \lim_{c\to b} f(c) = \lim_{c\to a} f(c)$$ but I don't see how to prove it easily using the $\varepsilon$-$\delta$ definition. It immediately follows from the continuity of $$g(x)= \lim_{y\to x} f(y)$$ but is it possible to prove it without it?