Killing zombies wears down your weapon. However, when it is on its last legs, it is not completely useless. Throwing your weapons can damage enemies without dulling the weapon. If you have a weapon worth keeping, but it is almost used up, just keep throwing it at zombies until you can repair it again.