This is a probably basic question about Laurent series. Say $g(z)$ is an analytic function, that $g(0) = 0$, and $f(z) = g(z)/z$. My textbook says $z = 0$ is a removable singularity of $f(z)$.
A removable singularity is defined as a singularity where the principal part of the Laurent series is zero. The Laurent series is:
$$\sum_{k=-\infty}^\infty c_k (z-z_0)^{k}$$
$$c_k = \frac{1}{2\pi i} \oint_C \frac{f(\xi)}{(\xi - z_0)^{k+1}} d\xi$$
The "principal part" of the Laurent series refers to the terms where $k \le -1$. Now if I look at the terms $k=-2, -1, 0$ of the Laurent series of $f(z)$ around $z = 0$:
$$c_{-2} = \frac{1}{2\pi i} \oint_C g(\xi) d\xi = 0$$
(This follows from Cauchy's integral theorem and the fact that $g$ is analytic.)
$$c_{-1} = \frac{1}{2\pi i} \oint_C \frac{g(\xi)}{\xi} d\xi$$
$$c_{0} = \frac{1}{2\pi i} \oint_C \frac{g(\xi)}{\xi^2} d\xi$$
Now it seems to me that $c_{-1}$ is not zero. Therefore, the principal part is not zero, and $z=0$ is a pole of order one.
Any hint or pointer as to where my reasoning goes wrong would be welcome.