Let $D$ be the unit disc, $f$ continuous on $\overline{D} \setminus \{1\}$, holomorphic and bounded on $D$. The problem is to show that for all $z \in D$, $$|f(z)| \leq \sup\limits_{|\zeta| = 1, \zeta \neq 1} |f(\zeta)|$$ I'm stuck. Here are two approaches I tried:
I . $f$ is represented by a convergent power series $\sum\limits_{n=0}^{\infty} a_n z^n$, absolutely and uniformly convergent for $|z| \leq r$, where $r < 1$. I don't know.
II . For each $0 < r < 1$, there is an angle $\theta \in (-\pi/2, \pi/2]$ such that $|f(z)| \leq |f(r e^{i \theta})|$ for all $|z| < r$ (maximal modulus principle). Pick $\theta_r$ to be such that $|\theta_r|$ is the supremum of all $|\theta|$ satisfying the condition I just mentioned. $\theta_r$ would be a limit of the $\theta$, so $|f(z_r)| \geq |f(z)|$ for all $|z| < r$ by continuity, where $z_r$ is defined to be $re^{i \theta_r}$. The idea is I'm trying to get the $\theta_r$ to not be too close to $0$, if possible.
Now pick any sequence of radii $r_1 < r_2 < \cdots $ which converges to $1$. Then $|f(z_{r_1})| \leq |f(z_{r_2})| \leq \cdots$, and we may choose a convergent subsequence of the $z_n$ converging to, say, $z_0 \in \partial D$. If $z_0 \neq 1$, we're clearly done.
To do this, I want to find a subsequence $z_{n_k}$, and a $\delta > 0$, such that $|\theta_{r_{n_{k}}}| > \delta$ for all $k$. I can then pick a convergent subsequence of this subsequence to do the trick. If this is not possible, then it's easy to see that $z_n$ has to converge to $1$ as a result. The numbers $|f(z_n)|$ are nondecreasing and bounded, so $|f(z_n)|$ tends to a limit as $z_n \to 1$. By the way I picked $z_n$, this shows that if $\theta_{r_n}'$ is another sequence of angles such that the maximum of $f$ on $|z| = r_n$ is attained at $r_ne^{\theta_n'}$, then $r_ne^{\theta_n'}$ also goes to $1$.
Not sure if this approach will go anywhere.