The LM317 limits the current to 26.6mA (1.25V/47 ohms). The 47 ohms resistors in series with each LED are not needed unless the tiny surface mounted LM317 gets too hot.
One resistor can replace the LM317 and the three resistors if the supply voltage does not change too much.