Naive Bayes Classifier
We are trying to select the optimal $c$, here $d$ is fixed and hence $P(d)$ and $\frac1{P(d)}$ is just a positive constant.

Multiplying an objective function with a positive constant doesn't change the optimal solution, hence we can drop $P(d)$.