Yes, it's simply used as an example for a curl- and source-free vector field (except along the ##z##-axis, where it's singular!), for which
$$\int_C \mathrm{d} \vec{r} \cdot \vec{v}(\vec{r}) = 2 \pi c \neq 0$$
for any closed curve that encircles the ##z##-axis.
It emphasizes the importance that form ##\vec{\nabla} \times \vec{v}## you can only conclude ##\vec{v}=-\vec{\nabla} \phi## locally, i.e., in simply-connected regions around a regular point.
Now globally, the Euclidean ##\mathbb{R}^3## with the ##z##-axis taken out is not simply connected.
To see that ##\vec{v}## has a unique potential only in a region with an entire half-plane with the ##z##-axis as boundary taken out, rewrite it in terms of the usual cylinder coordinates ##(\rho,\varphi,z)##. It's easy to see that it can be written as
$$\vec{v}(\vec{r})=\frac{c}{\rho} \vec{e}_{\varphi}.$$
Obviously it has a local potential in every simply-connected neighborhood of any point not on the ##z##-axis. Since it's only in direction of ##\vec{e}_{\varphi}##, it's suggestive to assume that the potential is a function of ##\varphi## only. Indeed the gradient in cylinder coordinates gives
$$\vec{\nabla} \phi(\varphi)=\frac{1}{\rho} \vec{e}_{\varphi} \partial_\varphi \phi \stackrel{!}{=}-\vec{v}=-\frac{c}{\rho} \vec{e}_{\varphi} \; \rightarrow \; \phi(\varphi)=-c \varphi.$$
Now to get the potential unique, you have to take out some half-plane with the ##z##-axis as boundary. You can, e.g., choose the ##(x,z)##-half-plane with ##x<0##. Then you can choose ##\varphi \in ]-\pi,\pi]##. Then the potential makes a jump at any point on this half-plane by a value of ##2 \pi c##, and indeed that's the value you get for the integral along a closed loop around the ##z##-axis.