Replace a dimmer switch with a regular light switch
Why would you replace a single pole dimmer with a 3-way switch?? I pity the next person who tries to figure out what the heck is going on with this. 

Correct replacement would have been - leave the wires that are connected to each other connected to each other. Remove dimmer with one in, one out - replace with switch with one in, one out, connecting wall wires just as they were connected to the dimmer.