Converting 3×7 speed into a 2(chainrings)×1(sprockect)
Without a rear derailleur one cannot switch gear on the front chainring. The length of the chain would differ between chain rings. The derailleur compensates this by running the chain a longer path that may be shortened by moving the derailleur arm. It also tensions the chain due to its spring, which hold the chain on the chainring.